/** * Create a new instance. * * @param a the first value * @param b the second value */ public Pair(final A a, final B b) { this.a = a; this.b = b; hashCode = hashCode(a, b); }
/** * Reinitialize the object and set the hash code. * * @param ois the object input stream * @throws IOException if an I/O error occurs while reading the default fields * @throws ClassNotFoundException if a class isn't found while reading the default fields */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); setter.setInt(this, hashCode(a, b)); }
/** * Create a new instance. * * @param a the first value * @param b the second value */ public Pair(final A a, final B b) { this.a = a; this.b = b; hashCode = hashCode(a, b); }
/** * Create a new instance. * * @param a the first value * @param b the second value */ public Pair(final A a, final B b) { this.a = a; this.b = b; hashCode = hashCode(a, b); }
/** * Create a new instance. * * @param a the first value * @param b the second value */ public Pair(final A a, final B b) { this.a = a; this.b = b; hashCode = hashCode(a, b); }
/** * Create a new instance. * * @param a the first value * @param b the second value */ public Pair(final A a, final B b) { this.a = a; this.b = b; hashCode = hashCode(a, b); }
/** * Create a new instance. * * @param a the first value * @param b the second value */ public Pair(final A a, final B b) { this.a = a; this.b = b; hashCode = hashCode(a, b); }
/** * Reinitialize the object and set the hash code. * * @param ois the object input stream * @throws IOException if an I/O error occurs while reading the default fields * @throws ClassNotFoundException if a class isn't found while reading the default fields */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); setter.setInt(this, hashCode(a, b)); }
/** * Reinitialize the object and set the hash code. * * @param ois the object input stream * @throws IOException if an I/O error occurs while reading the default fields * @throws ClassNotFoundException if a class isn't found while reading the default fields */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); setter.setInt(this, hashCode(a, b)); }
/** * Reinitialize the object and set the hash code. * * @param ois the object input stream * @throws IOException if an I/O error occurs while reading the default fields * @throws ClassNotFoundException if a class isn't found while reading the default fields */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); setter.setInt(this, hashCode(a, b)); }
/** * Reinitialize the object and set the hash code. * * @param ois the object input stream * @throws IOException if an I/O error occurs while reading the default fields * @throws ClassNotFoundException if a class isn't found while reading the default fields */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); setter.setInt(this, hashCode(a, b)); }
/** * Reinitialize the object and set the hash code. * * @param ois the object input stream * @throws IOException if an I/O error occurs while reading the default fields * @throws ClassNotFoundException if a class isn't found while reading the default fields */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); setter.setInt(this, hashCode(a, b)); }