Package Torello.Java.Additional
Class Ret0
- java.lang.Object
-
- Torello.Java.Additional.MultiType
-
- Torello.Java.Additional.RetN
-
- Torello.Java.Additional.Ret0
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Ret0 extends RetN implements java.io.Serializable
Contains astatic
reference to a singleton-instance ofRet0
.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Java/Additional/Ret0.java
- Open New Browser-Tab: Torello/Java/Additional/Ret0.java
File Size: 2,928 Bytes Line Count: 94 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
Ret0 Singleton Instance Modifier and Type Field static Ret0
R0
-
Method Summary
Retrieve the Number of Fields in this Class Modifier and Type Method int
n()
Abstract-Implementing Stub Methods Modifier and Type Method Object
get(int i)
Tuple0
toModifiable()
Methods: interface java.lang.Cloneable Modifier and Type Method Ret0
clone()
Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
int
hashCode()
String
toString()
-
-
-
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;
-
R0
-
-
Method Detail
-
n
-
clone
-
toString
-
equals
public final boolean equals(java.lang.Object other)
-
hashCode
-
get
public java.lang.Object get(int i)
This method is guaranteed to throw anIndexOutOfBoundsExceptin
. There aren't any fields that can be retrieved from theTuple0
Singleton-Instance.- Specified by:
get
in classMultiType
- Parameters:
i
- ignored parameter- Returns:
- Does not return anything. Always throws IOOBEX.
- Throws:
java.lang.IndexOutOfBoundsException
- Always throws.- See Also:
MultiType.get(int, Class)
,MultiType.GET(int)
- Code:
- Exact Method Body:
// Always throws Out Of Bounds Exception, Cannot get from Tuple0 CHECK_GET(i); // The above method should always throw IOOOBEX, this line quiets javac throw new UnreachableError();
-
toModifiable
public Tuple0 toModifiable()
Description copied from class:RetN
- Specified by:
toModifiable
in classRetN
- Returns:
- A
TupleN
of the same size, which is a modifiable type whose fields are not decorated with the'final'
modifier - as the fields in this class are. - Code:
- Exact Method Body:
return Tuple0.T0;
-
-