Class Ret0

    • 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()
      • Methods inherited from class java.lang.Object

        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;
        
    • Method Detail

      • n

        🡅  🡇     🗕  🗗  🗖
        public int n()
        Returns '0', indicating how many fields are declared by this class.
        Specified by:
        n in class MultiType
        Returns:
        As an instance of Ret0, this method returns '0';
        Code:
        Exact Method Body:
         return 0;
        
      • clone

        🡅  🡇     🗕  🗗  🗖
        public final Ret0 clone()
        This method may not be invoked, or it will throw an exception.
        Specified by:
        clone in class MultiType
        Returns:
        A clone copy of 'this' object.
        Throws:
        java.lang.UnsupportedOperationException - This class only one singleton instance.
        Code:
        Exact Method Body:
         throw new UnsupportedOperationException
             ("The singleton instance of Ret0 cannot be cloned.");
        
      • toString

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String toString()
        Produces the Ret0 singleton-instance 'toString'
        Overrides:
        toString in class MultiType
        Returns:
        The Java Literal-String "Ret0 Singleton Instance"
        Code:
        Exact Method Body:
         return "Ret0 Singleton Instance";
        
      • equals

        🡅  🡇     🗕  🗗  🗖
        public final boolean equals​(java.lang.Object other)
        There is only one, singleton, instance of Ret0, so reference-equality is the only equality-test.
        Overrides:
        equals in class MultiType
        Parameters:
        other - Any Java Object.
        Returns:
        TRUE if and only if 'other' is this class' singleton instance of Ret0
        Code:
        Exact Method Body:
         return this == other;
        
      • hashCode

        🡅  🡇     🗕  🗗  🗖
        public final int hashCode()
        Returns the hash-code for the singleton-instance of Ret0
        Overrides:
        hashCode in class MultiType
        Returns:
        A nice round-number, 55 to be exact.
        Code:
        Exact Method Body:
         return 55;
        
      • get

        🡅  🡇     🗕  🗗  🗖
        public java.lang.Object get​(int i)
        This method is guaranteed to throw an IndexOutOfBoundsExceptin. There aren't any fields that can be retrieved from the Tuple0 Singleton-Instance.
        Specified by:
        get in class MultiType
        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
        Converts 'this' Read-Only RetN instance into a Read-Write TupleN.
        Specified by:
        toModifiable in class RetN
        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;