public class LongProperty extends AbstractProperty<Long>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
LongProperty(String key,
int displayPriority,
String shortName,
String description,
long initialValue,
long minValue,
long maxValue,
String formatString,
boolean readOnly)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractProperty<Long> |
deepCopy()
Construct a deep copy of this property (duplicates everything except immutable fields).
|
Long |
getValue()
Retrieve the current value of the property.
|
String |
htmlStateDescription()
Generate a description of the state of this property in HTML (excluding the <html> at the start and the
</html> at the end.
|
void |
setValue(Long newValue)
Change the value of the property.
|
findByKey, getDescription, getDisplayPriority, getKey, getParent, getShortName, isReadOnly, iterator, setParent, setReadOnly, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic LongProperty(String key, int displayPriority, String shortName, String description, long initialValue, long minValue, long maxValue, String formatString, boolean readOnly)
key - String; keydisplayPriority - int; display propertyshortName - String; shortNamedescription - String; descriptioninitialValue - Long; initial valueminValue - Long; minimum valuemaxValue - Long; maximum valueformatString - String; format stringreadOnly - boolean; read-onlypublic Long getValue()
public void setValue(Long newValue) throws PropertyException
newValue - T; the new value for the propertyPropertyException - when this Property is read-only, or newValue is not validpublic AbstractProperty<Long> deepCopy()
public final String htmlStateDescription()
htmlStateDescription in interface Property<Long>htmlStateDescription in class AbstractProperty<Long>Copyright © 2014–2018 Delft University of Technology. All rights reserved.