Class Ret8<A1,​B2,​C3,​D4,​E5,​F6,​G7,​H8>

  • 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 sixth member-field ('f6').
    G7 - The type of the seventh member-field ('g7').
    H8 - The type of the last member-field ('h8').
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Ret8<A1,​B2,​C3,​D4,​E5,​F6,​G7,​H8>
    extends RetN
    implements java.io.Serializable, java.lang.Cloneable
    This simple generic-class allows a function to return eight 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
      Ret8​(A1 a1, B2 b2, C3 c3, D4 d4, E5 e5, F6 f6, G7 g7, H8 h8)
    • Method Summary

       
      Retrieve Number of Fields in this Class
      Modifier and Type Method
      int n()
       
      Methods: interface java.lang.Cloneable
      Modifier and Type Method
      Ret8<A1,
           ​B2,
           ​C3,
           ​D4,
           ​E5,
           ​F6,
           ​G7,
           ​H8>
      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;
        
      • g7

        🡅  🡇    
        public final G7 g7
        This holds a pointer to the seventh response object.
        Code:
        Exact Field Declaration Expression:
        public final G7 g7;
        
      • h8

        🡅  🡇    
        public final H8 h8
        This holds a pointer to the seventh response object.
        Code:
        Exact Field Declaration Expression:
        public final H8 h8;
        
    • Method Detail

      • n

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

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