/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfInts(int left, int right) { set(left, right); }
/** * Checks two pairs for equality. * * @param obj object for comparison * @return <code>true</code> if <code>obj</code> is equal to this object, <code>false</code> * otherwise */ public boolean equals(Object obj) { PairOfLongInt pair = (PairOfLongInt) obj; return leftElement == pair.getLeftElement() && rightElement == pair.getRightElement(); }
/** * Clones this object. * * @return clone of this object */ public PairOfLongs clone() { return new PairOfLongs(this.leftElement, this.rightElement); }
/** * Checks two pairs for equality. * * @param obj object for comparison * @return <code>true</code> if <code>obj</code> is equal to this object, <code>false</code> * otherwise */ public boolean equals(Object obj) { PairOfInts pair = (PairOfInts) obj; return leftElement == pair.getLeftElement() && rightElement == pair.getRightElement(); }
/** * Checks two pairs for equality. * * @param obj object for comparison * @return <code>true</code> if <code>obj</code> is equal to this object, <code>false</code> * otherwise */ public boolean equals(Object obj) { PairOfIntLong pair = (PairOfIntLong) obj; return leftElement == pair.getLeftElement() && rightElement == pair.getRightElement(); }
/** * Creates a shallow clone of this object; the left element itself is not cloned. */ public PairOfObjectInt<L> clone() { return new PairOfObjectInt<L>(left, right); }
/** * Clones this object. * * @return clone of this object */ public PairOfFloatInt clone() { return new PairOfFloatInt(this.leftElement, this.rightElement); }
/** * Checks two pairs for equality. * * @param obj object for comparison * @return <code>true</code> if <code>obj</code> is equal to this object, <code>false</code> * otherwise */ public boolean equals(Object obj) { PairOfFloats pair = (PairOfFloats) obj; return leftElement == pair.getLeftElement() && rightElement == pair.getRightElement(); }
/** * Checks two pairs for equality. * * @param obj object for comparison * @return <code>true</code> if <code>obj</code> is equal to this object, <code>false</code> * otherwise */ public boolean equals(Object obj) { PairOfIntFloat pair = (PairOfIntFloat) obj; return leftElement == pair.getLeftElement() && rightElement == pair.getRightElement(); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfIntString(int left, String right) { set(left, right); }
/** * Checks two pairs for equality. * * @param obj object for comparison * @return <code>true</code> if <code>obj</code> is equal to this object, <code>false</code> * otherwise */ public boolean equals(Object obj) { PairOfFloatInt pair = (PairOfFloatInt) obj; return leftElement == pair.getLeftElement() && rightElement == pair.getRightElement(); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfIntLong(int left, long right) { set(left, right); }
/** * Clones this object. * * @return clone of this object */ public PairOfLongFloat clone() { return new PairOfLongFloat(this.leftElement, this.rightElement); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfStringLong(String left, long right) { set(left, right); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfFloatInt(float left, int right) { set(left, right); }
/** * Creates a shallow clone of this object; the left and right elements are not cloned. */ public PairOfObjects<L, R> clone() { return new PairOfObjects<L, R>(left, right); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfLongInt(long left, int right) { set(left, right); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfLongs(long left, long right) { set(left, right); }
/** * Clones this object. * * @return clone of this object */ public PairOfIntString clone() { return new PairOfIntString(this.leftElement, this.rightElement); }
/** * Creates a pair. * * @param left the left element * @param right the right element */ public PairOfIntFloat(int left, float right) { set(left, right); }