@Override public int hashCode() { return ObjectContracts.hashCode(this, KEY_FIELDS); }
/** * Returns the hashCode for the object using the specified property name(s). * @deprecated - please be aware that this utility heavily uses reflection. We don't actually intend to deprecate this method (it's useful while prototyping), but we wanted to bring this to your attention! * @param propertyNames - the property name or names, CSV format. If multiple properties, use the {@link #hashCode(Object, String...)} varargs} overloaded version of this method. */ @Deprecated public static int hashCode(Object obj, String propertyNames) { final Iterable<String> propertyNamesIter = csvToIterable(propertyNames); return hashCode(obj, propertyNamesIter); }
@Override public int hashCode() { return ObjectContracts.hashCode(this, KEY_PROPERTIES); } @Override
/** * Returns the hashCode for the object using the specified property name(s). * @deprecated - please be aware that this utility heavily uses reflection. We don't actually intend to deprecate this method (it's useful while prototyping), but we wanted to bring this to your attention! */ @Deprecated public static int hashCode(Object obj, String... propertyNames) { final Iterable<String> propertyNamesIter = varargsToIterable(propertyNames); return hashCode(obj, propertyNamesIter); }
@Override public int hashCode() { return ObjectContracts.hashCode(this, KEY_PROPERTIES); } @Override
@Override public int hashCode() { return ObjectContracts.hashCode(this, KEY_PROPERTIES); } @Override