Package Torello.Java.Additional
Class Ret6<A1,B2,C3,D4,E5,F6>
- java.lang.Object
-
- Torello.Java.Additional.RetN
-
- Torello.Java.Additional.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
Hi-Lited Source-Code:- View Here: Torello/Java/Additional/Ret6.java
- Open New Browser-Tab: Torello/Java/Additional/Ret6.java
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable
. Using theSerializable
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;
-
-
Method Detail
-
n
public int n()
Returns'6'
, indicating how many fields are declared by this class.
-
-