public final class LocalDateDoublePoint extends Object implements Comparable<LocalDateDoublePoint>
LocalDateDoubleTimeSeries.
This implementation uses arrays internally.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LocalDateDoublePoint other)
Compares this point to another.
|
boolean |
equals(Object obj)
Checks if this point is equal to another point.
|
LocalDate |
getDate()
Gets the date.
|
double |
getValue()
Gets the value.
|
int |
hashCode()
A hash code for this point.
|
static LocalDateDoublePoint |
of(LocalDate date,
double value)
Obtains a point from date and value.
|
String |
toString()
Returns a string representation of the point.
|
LocalDateDoublePoint |
withDate(LocalDate date)
Returns a copy of this point with another date.
|
LocalDateDoublePoint |
withValue(double value)
Returns a copy of this point with another value.
|
public static LocalDateDoublePoint of(LocalDate date, double value)
date - the datevalue - the valuepublic LocalDate getDate()
public double getValue()
public LocalDateDoublePoint withDate(LocalDate date)
date - the date to change the point topublic LocalDateDoublePoint withValue(double value)
value - the value to change the point topublic int compareTo(LocalDateDoublePoint other)
The sort order is by date, then by double. This is compatible with equals.
compareTo in interface Comparable<LocalDateDoublePoint>other - the other pointpublic boolean equals(Object obj)
public int hashCode()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.