if (c.getTimezone() == DatatypeConstants.FIELD_UNDEFINED) final Number n = calendarToReal(c); for (final Iterator<ContinuousRealInterval> it = revisedNz.iterator(); it.hasNext();)
if (c.getTimezone() == DatatypeConstants.FIELD_UNDEFINED) final Number n = calendarToReal(c); for (final Iterator<ContinuousRealInterval> it = revisedNz.iterator(); it.hasNext();)
@Override public boolean contains(final Object value) { if (value instanceof XMLGregorianCalendar) { final XMLGregorianCalendar c = (XMLGregorianCalendar) value; if (isValidValue(c)) { final Number n = calendarToReal(c); /* * TODO: This could be made more efficient by looking at how * each contained check fails (e.g., if intervals is sorted by * boundaries and n is not contained, but less than upper, there * is no need to look further). */ for (final ContinuousRealInterval i : c.getTimezone() == DatatypeConstants.FIELD_UNDEFINED ? _nzIntervals : _wzIntervals) if (i.contains(n)) return true; return false; } else return false; } else return false; }
@Override public boolean contains(final Object value) { if (value instanceof XMLGregorianCalendar) { final XMLGregorianCalendar c = (XMLGregorianCalendar) value; if (isValidValue(c)) { final Number n = calendarToReal(c); /* * TODO: This could be made more efficient by looking at how * each contained check fails (e.g., if intervals is sorted by * boundaries and n is not contained, but less than upper, there * is no need to look further). */ for (final ContinuousRealInterval i : c.getTimezone() == DatatypeConstants.FIELD_UNDEFINED ? _nzIntervals : _wzIntervals) if (i.contains(n)) return true; return false; } else return false; } else return false; }
upper = calendarToReal(c); inclusiveUpper = false; upper = calendarToReal(c); inclusiveUpper = true; if (XSD.MIN_EXCLUSIVE.equals(f)) lower = calendarToReal(c); inclusiveLower = false; upper = null; if (XSD.MIN_INCLUSIVE.equals(f)) lower = calendarToReal(c); inclusiveLower = true; upper = null;
upper = calendarToReal(c); inclusiveUpper = false; upper = calendarToReal(c); inclusiveUpper = true; if (XSD.MIN_EXCLUSIVE.equals(f)) lower = calendarToReal(c); inclusiveLower = false; upper = null; if (XSD.MIN_INCLUSIVE.equals(f)) lower = calendarToReal(c); inclusiveLower = true; upper = null;