/** * Get a suitable debug string. * * @return debug string */ public String toString() { return getName(); }
/** * Get a suitable debug string. * * @return debug string */ public String toString() { return getName(); }
public String getName() { return iType.getName(); }
public final String getName() { return iType.getName(); }
public String getName() { return iType.getName(); }
public String getName() { return iType.getName(); }
public final String getName() { return iType.getName(); }
public String getName() { return iType.getName(); }
/** * Gets a debugging string. * * @return a debugging string */ public String toString() { if (iLowerLimit == iUpperLimit) { return "DateTimeComparator[" + (iLowerLimit == null ? "" : iLowerLimit.getName()) + "]"; } else { return "DateTimeComparator[" + (iLowerLimit == null ? "" : iLowerLimit.getName()) + "-" + (iUpperLimit == null ? "" : iUpperLimit.getName()) + "]"; } }
/** * Gets a debugging string. * * @return a debugging string */ public String toString() { if (iLowerLimit == iUpperLimit) { return "DateTimeComparator[" + (iLowerLimit == null ? "" : iLowerLimit.getName()) + "]"; } else { return "DateTimeComparator[" + (iLowerLimit == null ? "" : iLowerLimit.getName()) + "-" + (iUpperLimit == null ? "" : iUpperLimit.getName()) + "]"; } }
/** * Constructor. * * @param fieldType type of field being set * @param value illegal value being set */ public IllegalFieldValueException(DateTimeFieldType fieldType, String value) { super(createMessage(fieldType.getName(), value)); iDateTimeFieldType = fieldType; iDurationFieldType = null; iFieldName = fieldType.getName(); iStringValue = value; iNumberValue = null; iLowerBound = null; iUpperBound = null; iMessage = super.getMessage(); }
/** * Constructor. * * @param fieldType type of field being set * @param value illegal value being set */ public IllegalFieldValueException(DateTimeFieldType fieldType, String value) { super(createMessage(fieldType.getName(), value)); iDateTimeFieldType = fieldType; iDurationFieldType = null; iFieldName = fieldType.getName(); iStringValue = value; iNumberValue = null; iLowerBound = null; iUpperBound = null; iMessage = super.getMessage(); }
/** * Constructor. * * @param fieldType type of field being set * @param value illegal value being set * @param lowerBound lower legal field value, or null if not applicable * @param upperBound upper legal field value, or null if not applicable */ public IllegalFieldValueException(DateTimeFieldType fieldType, Number value, Number lowerBound, Number upperBound) { super(createMessage(fieldType.getName(), value, lowerBound, upperBound, null)); iDateTimeFieldType = fieldType; iDurationFieldType = null; iFieldName = fieldType.getName(); iNumberValue = value; iStringValue = null; iLowerBound = lowerBound; iUpperBound = upperBound; iMessage = super.getMessage(); }
/** * Constructor. * * @param fieldType type of field being set * @param value illegal value being set * @param explain an explanation * @since 1.5 */ public IllegalFieldValueException(DateTimeFieldType fieldType, Number value, String explain) { super(createMessage(fieldType.getName(), value, null, null, explain)); iDateTimeFieldType = fieldType; iDurationFieldType = null; iFieldName = fieldType.getName(); iNumberValue = value; iStringValue = null; iLowerBound = null; iUpperBound = null; iMessage = super.getMessage(); }
/** * Constructor. * * @param fieldType type of field being set * @param value illegal value being set * @param explain an explanation * @since 1.5 */ public IllegalFieldValueException(DateTimeFieldType fieldType, Number value, String explain) { super(createMessage(fieldType.getName(), value, null, null, explain)); iDateTimeFieldType = fieldType; iDurationFieldType = null; iFieldName = fieldType.getName(); iNumberValue = value; iStringValue = null; iLowerBound = null; iUpperBound = null; iMessage = super.getMessage(); }
/** * Constructor. * * @param fieldType type of field being set * @param value illegal value being set * @param lowerBound lower legal field value, or null if not applicable * @param upperBound upper legal field value, or null if not applicable */ public IllegalFieldValueException(DateTimeFieldType fieldType, Number value, Number lowerBound, Number upperBound) { super(createMessage(fieldType.getName(), value, lowerBound, upperBound, null)); iDateTimeFieldType = fieldType; iDurationFieldType = null; iFieldName = fieldType.getName(); iNumberValue = value; iStringValue = null; iLowerBound = lowerBound; iUpperBound = upperBound; iMessage = super.getMessage(); }
/** * Gets a string version of the partial that lists all the fields. * <p> * This method exists to provide a better debugging toString than * the standard toString. This method lists all the fields and their * values in a style similar to the collections framework. * * @return a toString format that lists all the fields */ public String toStringList() { int size = size(); StringBuilder buf = new StringBuilder(20 * size); buf.append('['); for (int i = 0; i < size; i++) { if (i > 0) { buf.append(',').append(' '); } buf.append(iTypes[i].getName()); buf.append('='); buf.append(iValues[i]); } buf.append(']'); return buf.toString(); }
/** * Gets a string version of the partial that lists all the fields. * <p> * This method exists to provide a better debugging toString than * the standard toString. This method lists all the fields and their * values in a style similar to the collections framework. * * @return a toString format that lists all the fields */ public String toStringList() { int size = size(); StringBuilder buf = new StringBuilder(20 * size); buf.append('['); for (int i = 0; i < size; i++) { if (i > 0) { buf.append(',').append(' '); } buf.append(iTypes[i].getName()); buf.append('='); buf.append(iValues[i]); } buf.append(']'); return buf.toString(); }
if (lastUnitField.isSupported()) { throw new IllegalArgumentException("Types array must be in order largest-smallest: " + types[i - 1].getName() + " < " + loopType.getName()); } else { throw new IllegalArgumentException("Types array must not contain duplicate unsupported: " + types[i - 1].getName() + " and " + loopType.getName()); if (compare < 0) { throw new IllegalArgumentException("Types array must be in order largest-smallest: " + types[i - 1].getName() + " < " + loopType.getName()); } else if (compare == 0) { if (lastUnitField.equals(loopUnitField)) { if (loopRangeType == null) { throw new IllegalArgumentException("Types array must not contain duplicate: " + types[i - 1].getName() + " and " + loopType.getName()); types[i - 1].getName() + " < " + loopType.getName()); if (lastRangeField.compareTo(loopRangeField) < 0) { throw new IllegalArgumentException("Types array must be in order largest-smallest: " + types[i - 1].getName() + " < " + loopType.getName()); types[i - 1].getName() + " and " + loopType.getName()); throw new IllegalArgumentException("Types array must be in order largest-smallest," + " for year-based fields, years is defined as being largest: " + types[i - 1].getName() + " < " + loopType.getName());
if (lastUnitField.isSupported()) { throw new IllegalArgumentException("Types array must be in order largest-smallest: " + types[i - 1].getName() + " < " + loopType.getName()); } else { throw new IllegalArgumentException("Types array must not contain duplicate unsupported: " + types[i - 1].getName() + " and " + loopType.getName()); if (compare < 0) { throw new IllegalArgumentException("Types array must be in order largest-smallest: " + types[i - 1].getName() + " < " + loopType.getName()); } else if (compare == 0) { if (lastUnitField.equals(loopUnitField)) { if (loopRangeType == null) { throw new IllegalArgumentException("Types array must not contain duplicate: " + types[i - 1].getName() + " and " + loopType.getName()); types[i - 1].getName() + " < " + loopType.getName()); if (lastRangeField.compareTo(loopRangeField) < 0) { throw new IllegalArgumentException("Types array must be in order largest-smallest: " + types[i - 1].getName() + " < " + loopType.getName()); types[i - 1].getName() + " and " + loopType.getName()); throw new IllegalArgumentException("Types array must be in order largest-smallest," + " for year-based fields, years is defined as being largest: " + types[i - 1].getName() + " < " + loopType.getName());