com.oracle.determinations.engine
Class ChangePoint
This topic only applies to self-managed Intelligent Advisor edition
java.lang.Object
com.oracle.determinations.engine.ChangePoint
- All Implemented Interfaces:
- java.io.Serializable
public final class ChangePoint
extends java.lang.Object
implements java.io.Serializable
Immutable object that represents a single change point in a temporal value.
A temporal value consists of a value object, and a date from which the
value applies.
- Since:
- 9.1
- See Also:
TemporalValue
,YearMonthDay
Constructor Summary
Constructor and Description |
---|
ChangePoint(com.oracle.determinations.util.datetime.YearMonthDay date,
java.lang.Object v) Construct a new change point consisting of the date at which the change
applies, and the new value at the given date. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | equals(java.lang.Object arg0) Indicates whether some other object is "equal to" this one. |
com.oracle.determinations.util.datetime.YearMonthDay | getDate() Returns the date from which the change point applies. |
java.lang.Object | getValue() Returns the value that applies from the date represented by this
change point. |
int | hashCode() Returns a hash code value for the object. |
java.lang.String | toString() |
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Constructor Detail
ChangePoint
public ChangePoint(com.oracle.determinations.util.datetime.YearMonthDay date, java.lang.Object v)
Construct a new change point consisting of the date at which the change
applies, and the new value at the given date.
- Parameters:
date
- the date at which the change occursv
- the new value from the given date
Method Detail
equals
public boolean equals(java.lang.Object arg0)
Indicates whether some other object is "equal to" this one.
- Overrides:
equals
in classjava.lang.Object
getDate
public com.oracle.determinations.util.datetime.YearMonthDay getDate()
Returns the date from which the change point applies.
- Returns:
- the date from which this change point applies
getValue
public java.lang.Object getValue()
Returns the value that applies from the date represented by this
change point.
- Returns:
- the value in force from the date represented by this change point
hashCode
public int hashCode()
Returns a hash code value for the object. This method is
supported for the benefit of hash tables.
- Overrides:
hashCode
in classjava.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object