Package tech.anima.tinytypes
Class LongTinyType
java.lang.Object
tech.anima.tinytypes.LongTinyType
public abstract class LongTinyType
extends java.lang.Object
Base abstract class for a long-based TinyType. A class extending this will be
recognized and processed by the TinyTypes support libraries, as long as it's
not abstract and provides a ctor matching the one on this class.
-
Field Summary
Fields Modifier and Type Field Description longvalue -
Constructor Summary
Constructors Constructor Description LongTinyType(long value)Wrapping ctor. -
Method Summary
-
Field Details
-
value
public final long value
-
-
Constructor Details
-
LongTinyType
public LongTinyType(long value)Wrapping ctor.- Parameters:
value- the native value to be wrapped.
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()Get a String representation of this TinyType. Please note that this is not meant to be a "stringification" of the boxed value.- Overrides:
toStringin classjava.lang.Object- Returns:
- A type-informative, value-informative representation of this TinyType instance.
-