public class FInterval extends java.lang.Object implements IInterval
| Modifier and Type | Class and Description |
|---|---|
static class |
FInterval.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINTERVAL_PERSISTENCE_DEFINITION_NAME |
| Constructor and Description |
|---|
FInterval()
Creates a new empty FInterval, used to be instantiated by persistence
|
FInterval(double from,
double to)
Crea un nuevo FInterval.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
double |
getMax()
Devuelve el número final.
|
double |
getMin()
Devuelve el número de origen.
|
boolean |
isInInterval(java.lang.Object v)
Returns if the given value is included into the interval.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneQuietly, cloneQuietlypublic static final java.lang.String FINTERVAL_PERSISTENCE_DEFINITION_NAME
public FInterval()
public FInterval(double from,
double to)
from - Origen.to - Destino.public boolean isInInterval(java.lang.Object v)
IIntervalisInInterval in interface IIntervalv - value to check. Must be instance of Numberpublic double getMin()
public double getMax()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceException