public class ShortProperty extends Property
Title: ShortProperty
Description: A short property.
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private short |
value
The value of this property.
|
Constructor and Description |
---|
ShortProperty(short value)
Initializes the property to have the value indicated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Determines if the current property is equal to the given object.
|
static Property |
fromString(String property)
Creates a
ShortProperty that is decoded from the given
String and returns it. |
short |
getShort()
Retrieves the value of the property.
|
int |
getType()
Retrieves the type of property this is.
|
void |
setShort(short value)
Sets the value of the property.
|
String |
toString()
Retreives the
String representation of the property. |
getBoolean, getByte, getChar, getDouble, getFloat, getInteger, getLong, getString, setBoolean, setBtye, setChar, setDouble, setFloat, setInteger, setLong, setString
public ShortProperty(short value)
value
- The value to set the property at.public int getType()
getType
in class Property
Property.BOOLEAN
.Property.BOOLEAN
,
Property.STRING
,
Property.INTEGER
,
Property.LONG
,
Property.FLOAT
,
Property.DOUBLE
,
Property.CHAR
,
Property.BYTE
,
Property.FLOAT
public String toString()
String
representation of the property.public boolean equals(Object object)
public static Property fromString(String property)
ShortProperty
that is decoded from the given
String
and returns it.property
- The property in String
form.ShortProperty
form.public short getShort()