/** * Gets the minimum value for this field given the current field values. * * @return the minimum value * @see DateTimeField#getMinimumValue */ public int getMinimumValue() { return getField().getMinimumValue(getReadablePartial()); }
/** * Gets the maximum value for this field given the current field values. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValue() { return getField().getMaximumValue(getReadablePartial()); }
/** * Gets a suitable hashcode for the object. * * @return the hashcode * @since 1.3 */ public int hashCode() { int hash = 19; hash = 13 * hash + get(); hash = 13 * hash + getFieldType().hashCode(); hash = 13 * hash + getReadablePartial().getChronology().hashCode(); return hash; }
/** * Gets the minimum value for this field given the current field values. * * @return the minimum value * @see DateTimeField#getMinimumValue */ public int getMinimumValue() { return getField().getMinimumValue(getReadablePartial()); }
/** * Gets the maximum value for this field given the current field values. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValue() { return getField().getMaximumValue(getReadablePartial()); }
/** * Gets a suitable hashcode for the object. * * @return the hashcode * @since 1.3 */ public int hashCode() { int hash = 19; hash = 13 * hash + get(); hash = 13 * hash + getFieldType().hashCode(); hash = 13 * hash + getReadablePartial().getChronology().hashCode(); return hash; }
/** * Gets the textual value of this property from the instant as a * string in the specified locale. * <p> * This method returns the value converted to a <code>String</code> * returning the appropriate textual description wherever possible. * Thus, a day of week of 1 would return 'Monday' in English. * * @param locale locale to use for selecting a text symbol, null means default * @return the current text value * @see DateTimeField#getAsText */ public String getAsText(Locale locale) { return getField().getAsText(getReadablePartial(), get(), locale); }
/** * Gets the short textual value of this property from the instant as a * string in the specified locale. * <p> * This method returns the value converted to a <code>String</code> * returning the appropriate textual description wherever possible. * Thus, a day of week of 1 would return 'Mon' in English. * * @param locale locale to use for selecting a text symbol, null means default * @return the current text value * @see DateTimeField#getAsShortText */ public String getAsShortText(Locale locale) { return getField().getAsShortText(getReadablePartial(), get(), locale); }
/** * Gets the textual value of this property from the instant as a * string in the specified locale. * <p> * This method returns the value converted to a <code>String</code> * returning the appropriate textual description wherever possible. * Thus, a day of week of 1 would return 'Monday' in English. * * @param locale locale to use for selecting a text symbol, null means default * @return the current text value * @see DateTimeField#getAsText */ public String getAsText(Locale locale) { return getField().getAsText(getReadablePartial(), get(), locale); }
/** * Gets the short textual value of this property from the instant as a * string in the specified locale. * <p> * This method returns the value converted to a <code>String</code> * returning the appropriate textual description wherever possible. * Thus, a day of week of 1 would return 'Mon' in English. * * @param locale locale to use for selecting a text symbol, null means default * @return the current text value * @see DateTimeField#getAsShortText */ public String getAsShortText(Locale locale) { return getField().getAsShortText(getReadablePartial(), get(), locale); }
/** * Compares this property to another. * * @param object the object to compare to * @return true if equal */ public boolean equals(Object object) { if (this == object) { return true; } if (object instanceof AbstractPartialFieldProperty == false) { return false; } AbstractPartialFieldProperty other = (AbstractPartialFieldProperty) object; return get() == other.get() && getFieldType() == other.getFieldType() && FieldUtils.equals(getReadablePartial().getChronology(), other.getReadablePartial().getChronology()); }
/** * Compares this property to another. * * @param object the object to compare to * @return true if equal */ public boolean equals(Object object) { if (this == object) { return true; } if (object instanceof AbstractPartialFieldProperty == false) { return false; } AbstractPartialFieldProperty other = (AbstractPartialFieldProperty) object; return get() == other.get() && getFieldType() == other.getFieldType() && FieldUtils.equals(getReadablePartial().getChronology(), other.getReadablePartial().getChronology()); }
/** * Gets the minimum value for this field given the current field values. * * @return the minimum value * @see DateTimeField#getMinimumValue */ public int getMinimumValue() { return getField().getMinimumValue(getReadablePartial()); }
/** * Gets the maximum value for this field given the current field values. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValue() { return getField().getMaximumValue(getReadablePartial()); }
/** * Gets a suitable hashcode for the object. * * @return the hashcode * @since 1.3 */ public int hashCode() { int hash = 19; hash = 13 * hash + get(); hash = 13 * hash + getFieldType().hashCode(); hash = 13 * hash + getReadablePartial().getChronology().hashCode(); return hash; }
/** * Gets the short textual value of this property from the instant as a * string in the specified locale. * <p> * This method returns the value converted to a <code>String</code> * returning the appropriate textual description wherever possible. * Thus, a day of week of 1 would return 'Mon' in English. * * @param locale locale to use for selecting a text symbol, null means default * @return the current text value * @see DateTimeField#getAsShortText */ public String getAsShortText(Locale locale) { return getField().getAsShortText(getReadablePartial(), get(), locale); }
/** * Gets the textual value of this property from the instant as a * string in the specified locale. * <p> * This method returns the value converted to a <code>String</code> * returning the appropriate textual description wherever possible. * Thus, a day of week of 1 would return 'Monday' in English. * * @param locale locale to use for selecting a text symbol, null means default * @return the current text value * @see DateTimeField#getAsText */ public String getAsText(Locale locale) { return getField().getAsText(getReadablePartial(), get(), locale); }
/** * Compares this property to another. * * @param object the object to compare to * @return true if equal */ public boolean equals(Object object) { if (this == object) { return true; } if (object instanceof AbstractPartialFieldProperty == false) { return false; } AbstractPartialFieldProperty other = (AbstractPartialFieldProperty) object; return get() == other.get() && getFieldType() == other.getFieldType() && FieldUtils.equals(getReadablePartial().getChronology(), other.getReadablePartial().getChronology()); }
/** * Gets the minimum value for this field given the current field values. * * @return the minimum value * @see DateTimeField#getMinimumValue */ public int getMinimumValue() { return getField().getMinimumValue(getReadablePartial()); }
/** * Gets the minimum value for this field given the current field values. * * @return the minimum value * @see DateTimeField#getMinimumValue */ public int getMinimumValue() { return getField().getMinimumValue(getReadablePartial()); }