public final class DataType extends Object
| Modifier and Type | Field and Description |
|---|---|
static DataType |
DEFAULT |
static DataType |
RAW |
| Constructor and Description |
|---|
DataType(String name,
Boolean raw,
int bins,
boolean persistent)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator<DataType> |
compareByName()
Returns comparator that compares time windows by names.
|
static Comparator |
compareByTime()
Returns comparator that compares time windows by last use times, most recent first.
|
boolean |
equals(Object o) |
int |
getBins() |
long |
getLastUseTime()
Returns the time in milliseconds when this time window was last selected.
|
String |
getName() |
Boolean |
getRaw() |
int |
hashCode() |
boolean |
isPersistent()
Returns
true if this data type should be persisted between sessions. |
boolean |
isReplaceableBy(DataType other) |
static DataType |
parseCompressedString(String s)
Parses string representation of this time window used for saving it in application properties.
|
void |
setBins(int bins) |
void |
setName(String name) |
void |
setPersistent(boolean persistent)
Sets the flag that indicate whether or not this data type should be persisted between sessions.
|
void |
setRaw(Boolean raw) |
String |
toCompressedString()
Returns string representation of this data type used for saving it in application properties.
|
String |
toString()
Returns user-readable string representation of this data type.
|
DataType |
touch()
Sets the time when this data type was last selected to the current system time.
|
public DataType(String name, Boolean raw, int bins, boolean persistent)
name - Time window name.raw - True in raw data, false if statistical, null if unspecified.bins - Desired number of beans, 0 if unspecified.persistent - True is this time window will be persisted between console sessions.IllegalArgumentException - If the combination of arguments is illegal.public Boolean getRaw()
public void setRaw(Boolean raw)
public int getBins()
public void setBins(int bins)
public String getName()
public void setName(String name)
public boolean isPersistent()
true if this data type should be persisted between sessions.public void setPersistent(boolean persistent)
public long getLastUseTime()
public DataType touch()
public String toString()
public String toCompressedString()
public static DataType parseCompressedString(String s)
public boolean isReplaceableBy(DataType other)
public static Comparator<DataType> compareByName()
public static Comparator compareByTime()
Copyright © 2024 LSST. All rights reserved.