@Override public int hashCode() { if (hashCode >= 0) return hashCode; hashCode = 37; hashCode = PiecewiseUtilities.hash(name, hashCode); hashCode = PiecewiseUtilities.hash(defaultColor, hashCode); hashCode = PiecewiseUtilities.hash(preFilteringColor, hashCode); hashCode = PiecewiseUtilities.hash(preFilteringElements, hashCode); hashCode = PiecewiseUtilities.hash(standardElements, hashCode); hashCode = PiecewiseUtilities.hash(piecewise, hashCode); return hashCode; } }
/** * Returns a hash value for this domain element. This value need not remain consistent between different implementations of the same class. * */ public int hashCode() { if (hashCode >= 0) return hashCode; hashCode = 37; hashCode = PiecewiseUtilities.hash(name, hashCode); hashCode = PiecewiseUtilities.hash(range, hashCode); hashCode = PiecewiseUtilities.hash(inputMaximum, hashCode); hashCode = PiecewiseUtilities.hash(inputMinimum, hashCode); return hashCode; }
@Override public int hashCode() { if (hashCode >= 0) return hashCode; hashCode = 37; hashCode = PiecewiseUtilities.hash(name, hashCode); hashCode = PiecewiseUtilities.hash(defaultColor, hashCode); hashCode = PiecewiseUtilities.hash(preFilteringColor, hashCode); hashCode = PiecewiseUtilities.hash(preFilteringElements, hashCode); hashCode = PiecewiseUtilities.hash(standardElements, hashCode); hashCode = PiecewiseUtilities.hash(piecewise, hashCode); return hashCode; } }
/** * Returns a hash value for this domain element. This value need not remain consistent between different implementations of the same class. * */ public int hashCode() { if (hashCode >= 0) return hashCode; hashCode = 37; hashCode = PiecewiseUtilities.hash(name, hashCode); hashCode = PiecewiseUtilities.hash(range, hashCode); hashCode = PiecewiseUtilities.hash(inputMaximum, hashCode); hashCode = PiecewiseUtilities.hash(inputMinimum, hashCode); return hashCode; }
@Override public int hashCode() { int hashCode = 37; hashCode = PiecewiseUtilities.hash(outputRange, hashCode); hashCode = PiecewiseUtilities.hash(outputMaximum, hashCode); hashCode = PiecewiseUtilities.hash(outputMinimum, hashCode); hashCode = PiecewiseUtilities.hash(super.hashCode(), hashCode); return hashCode; } }
@Override public int hashCode() { int hashCode = 37; hashCode = PiecewiseUtilities.hash(outputRange, hashCode); hashCode = PiecewiseUtilities.hash(outputMaximum, hashCode); hashCode = PiecewiseUtilities.hash(outputMinimum, hashCode); hashCode = PiecewiseUtilities.hash(super.hashCode(), hashCode); return hashCode; } }
/** * Alters the given seed with the hash code value computed from the given value. * * @param value The value whose hash code to compute. * @param seed The hash code value computed so far. If this method is invoked for the first field, then any arbitrary value (preferably different * for each class) is okay. * @return An updated hash code value. */ public static int hash(double value, int seed) { return hash(Double.doubleToLongBits(value), seed); }
/** * Alters the given seed with the hash code value computed from the given value. * * @param value The value whose hash code to compute. * @param seed The hash code value computed so far. If this method is invoked for the first field, then any arbitrary value (preferably different * for each class) is okay. * @return An updated hash code value. */ public static int hash(double value, int seed) { return hash(Double.doubleToLongBits(value), seed); }
@Override public int hashCode() { if (hashCode < 0) { int result = PiecewiseUtilities.deepHashCode(elements); result = PiecewiseUtilities.deepHashCode(minimums); result = PiecewiseUtilities.hash(getName(), result); hashCode = PiecewiseUtilities.hash(getApproximateDomainRange(), hashCode); } return hashCode; } }
@Override public int hashCode() { if (hashCode < 0) { int result = PiecewiseUtilities.deepHashCode(elements); result = PiecewiseUtilities.deepHashCode(minimums); result = PiecewiseUtilities.hash(getName(), result); hashCode = PiecewiseUtilities.hash(getApproximateDomainRange(), hashCode); } return hashCode; } }