@ThreadSafe @Immutable public class DateRange extends RangeSupport<java.util.Date> implements SignificantableWithMinAndMaxBasedOn<java.util.Date,Duration>, SignificantableBasedOn<Duration>
| Modifier and Type | Class and Description |
|---|---|
static class |
DateRange.Adapter |
static class |
DateRange.Container |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Date |
MAX_DATE |
protected static java.util.Date |
MIN_DATE |
| Constructor and Description |
|---|
DateRange(java.util.Date from,
java.util.Date to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(java.util.Date toTest) |
boolean |
isSignificant(java.util.Date minValue,
java.util.Date maxValue,
Duration base) |
boolean |
isSignificant(Duration base) |
protected boolean |
matchesFrom(java.util.Date toTest) |
protected boolean |
matchesTo(java.util.Date toTest) |
protected static final java.util.Date MIN_DATE
protected static final java.util.Date MAX_DATE
public DateRange(@Nullable@Including java.util.Date from, @Nullable@Excluding java.util.Date to)
public boolean apply(@Nullable
java.util.Date toTest)
apply in interface com.google.common.base.Predicate<java.util.Date>protected boolean matchesFrom(@Nonnull
java.util.Date toTest)
protected boolean matchesTo(@Nonnull
java.util.Date toTest)
public boolean isSignificant(@Nonnull
Duration base)
isSignificant in interface SignificantableBasedOn<Duration>public boolean isSignificant(@Nonnull
java.util.Date minValue,
@Nonnull
java.util.Date maxValue,
@Nonnull
Duration base)
isSignificant in interface SignificantableWithMinAndMaxBasedOn<java.util.Date,Duration>Copyright © 2013 echocat. All Rights Reserved.