public class TimeSpecification extends Object implements Comparator<SnaphotLocation>
| Modifier and Type | Method and Description |
|---|---|
static TimeSpecification |
afterDate(LocalDate start,
Period afterFuzziness) |
int |
compare(SnaphotLocation a,
SnaphotLocation b) |
boolean |
contains(ZonedDateTime t) |
boolean |
equals(Object obj) |
Optional<SnaphotLocation> |
findBest(Iterable<SnaphotLocation> locations) |
Iterable<SnaphotLocation> |
findBest(Iterable<SnaphotLocation> locations,
int maxResults) |
LocalDate |
getEnd() |
double |
getRelevance(ZonedDateTime t) |
double |
getRelevanceExp(ZonedDateTime t) |
LocalDate |
getStart() |
int |
hashCode() |
static TimeSpecification |
interval(LocalDate start,
LocalDate end,
Period fuzziness) |
static TimeSpecification |
interval(LocalDate start,
LocalDate end,
Period beforeFuzziness,
Period afterFuzziness) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static TimeSpecification afterDate(LocalDate start, Period afterFuzziness)
public static TimeSpecification interval(LocalDate start, LocalDate end, Period fuzziness)
public static TimeSpecification interval(LocalDate start, LocalDate end, Period beforeFuzziness, Period afterFuzziness)
public double getRelevance(ZonedDateTime t)
public double getRelevanceExp(ZonedDateTime t)
public Optional<SnaphotLocation> findBest(Iterable<SnaphotLocation> locations)
public Iterable<SnaphotLocation> findBest(Iterable<SnaphotLocation> locations, int maxResults)
public int compare(SnaphotLocation a, SnaphotLocation b)
compare in interface Comparator<SnaphotLocation>public boolean contains(ZonedDateTime t)
public boolean equals(Object obj)
equals in interface Comparator<SnaphotLocation>equals in class Objectpublic LocalDate getStart()
public LocalDate getEnd()
Copyright © 2017. All rights reserved.