Class Ret0

  • All Implemented Interfaces:
    java.io.Serializable

    public class Ret0
    extends RetN
    implements java.io.Serializable
    Contains a static reference to a singleton-instance of Ret0.
    See Also:
    Serialized Form


    • 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;
        
      • R0

        🡅  🡇    
        public static final Ret0 R0
        This is the singleton instance of this class.
        Code:
        Exact Field Declaration Expression:
        public static final Ret0 R0 = new Ret0();
        
    • Method Detail

      • n

        🡅  🡇    
        public int n()
        Returns '0', indicating how many fields are declared by this class.
        Specified by:
        n in class RetN
        Returns:
        As in 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.
        Overrides:
        clone in class java.lang.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 RetN
        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)
        Overrides:
        equals in class java.lang.Object
        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 RetN
        Returns:
        A nice round-number, 55 to be exact.
        Code:
        Exact Method Body:
         return 55;