Class Ret6<A1,​B2,​C3,​D4,​E5,​F6>

  • Type Parameters:
    A1 - The type of the first member-field ('a1').
    B2 - The type of the second member-field ('b2').
    C3 - The type of the third member-field ('c3').
    D4 - The type of the fourth member-field ('d4').
    E5 - The type of the fifth member-field ('e5').
    F6 - The type of the last member-field ('f6').
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Ret6<A1,​B2,​C3,​D4,​E5,​F6>
    extends RetN
    implements java.io.Serializable, java.lang.Cloneable
    This simple generic-class allows a function to return six objects as a result, instead of just one. This is not always so useful, and can make code confusing. However there are some instances where the only alternative would be to create an entirely new class/object, when only a single method result would use that object.

    ALSO: For the classes Ret6, Ret7 & Ret8 - the variable name includes a number as well, since the letters become progressively more difficult to look at as they increase past "A, B, C, D..."
    See Also:
    Serialized Form


    • Constructor Summary

      Constructors 
      Constructor
      Ret6​(A1 a1, B2 b2, C3 c3, D4 d4, E5 e5, F6 f6)
    • Method Summary

       
      Retrieve Number of Fields in this Class
      Modifier and Type Method
      int n()
       
      Methods: interface java.lang.Cloneable
      Modifier and Type Method
      Ret6<A1,​B2,​C3,​D4,​E5,​F6> clone()
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        🡇    
        protected static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
        See Also:
        Constant Field Values
        Code:
        Exact Field Declaration Expression:
        protected static final long serialVersionUID = 1;
        
      • a1

        🡅  🡇    
        public final A1 a1
        This holds a pointer the first response object.
        Code:
        Exact Field Declaration Expression:
        public final A1 a1;
        
      • b2

        🡅  🡇    
        public final B2 b2
        This holds a pointer to the second response object.
        Code:
        Exact Field Declaration Expression:
        public final B2 b2;
        
      • c3

        🡅  🡇    
        public final C3 c3
        This holds a pointer to the third response object.
        Code:
        Exact Field Declaration Expression:
        public final C3 c3;
        
      • d4

        🡅  🡇    
        public final D4 d4
        This holds a pointer to the fourth response object.
        Code:
        Exact Field Declaration Expression:
        public final D4 d4;
        
      • e5

        🡅  🡇    
        public final E5 e5
        This holds a pointer to the fifth response object.
        Code:
        Exact Field Declaration Expression:
        public final E5 e5;
        
      • f6

        🡅  🡇    
        public final F6 f6
        This holds a pointer to the sixth response object.
        Code:
        Exact Field Declaration Expression:
        public final F6 f6;
        
    • Method Detail

      • n

        🡅  🡇    
        public int n()
        Returns '6', indicating how many fields are declared by this class.
        Specified by:
        n in class RetN
        Returns:
        As in instance of Ret6, this method returns '6';
        Code:
        Exact Method Body:
         return 6;
        
      • clone

        🡅    
        public Ret6<A1,​B2,​C3,​D4,​E5,​F6clone()
        Fulfills Java's interface Cloneable requirements.
        Overrides:
        clone in class java.lang.Object
        Returns:
        A copy of 'this' instance of Ret6.
        Code:
        Exact Method Body:
         return new Ret6<>(this.a1, this.b2, this.c3, this.d4, this.e5, this.f6);