Class ShortObjectPairImpl<T>
- java.lang.Object
-
- org.eclipse.collections.impl.tuple.primitive.ShortObjectPairImpl<T>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ShortObjectPair<T>>,ShortObjectPair<T>
public class ShortObjectPairImpl<T> extends java.lang.Object implements ShortObjectPair<T>
This file was automatically generated from template file primitiveObjectPairImpl.stg- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private shortoneprivate static longserialVersionUIDprivate Ttwo
-
Constructor Summary
Constructors Constructor Description ShortObjectPairImpl(short newOne, T newTwo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ShortObjectPair<T> that)booleanequals(java.lang.Object o)shortgetOne()TgetTwo()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
one
private final short one
-
two
private final T two
-
-
Constructor Detail
-
ShortObjectPairImpl
ShortObjectPairImpl(short newOne, T newTwo)
-
-
Method Detail
-
getOne
public short getOne()
- Specified by:
getOnein interfaceShortObjectPair<T>
-
getTwo
public T getTwo()
- Specified by:
getTwoin interfaceShortObjectPair<T>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ShortObjectPair<T> that)
- Specified by:
compareToin interfacejava.lang.Comparable<T>
-
-