Class ComparableEmpty
java.lang.Object
dk.cloudcreate.essentials.shared.functional.tuple.comparable.ComparableEmpty
- All Implemented Interfaces:
ComparableTuple<ComparableEmpty>,Serializable,Comparable<ComparableEmpty>
Represents a
ComparableTuple with zero elements- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComparableEmptyThe shared single instance of theComparableEmptytuple -
Method Summary
Modifier and TypeMethodDescriptionintarity()Number of arguments/elements in the TupleintbooleaninthashCode()static ComparableEmptyinstance()The shared single instance of theComparableEmptytupleList<?>toList()Convert the Tuple to a listtoString()
-
Field Details
-
INSTANCE
The shared single instance of theComparableEmptytuple
-
-
Method Details
-
instance
The shared single instance of theComparableEmptytuple- Returns:
- the shared single instance of the
ComparableEmptytuple
-
arity
public int arity()Description copied from interface:ComparableTupleNumber of arguments/elements in the Tuple- Specified by:
arityin interfaceComparableTuple<ComparableEmpty>- Returns:
- Number of arguments/elements in the Tuple
-
toList
Description copied from interface:ComparableTupleConvert the Tuple to a list- Specified by:
toListin interfaceComparableTuple<ComparableEmpty>- Returns:
- list of all Tuple elements
-
hashCode
public int hashCode() -
equals
-
toString
-