Package wtf.choco.arrows.api.property
Class SimpleArrowProperty
java.lang.Object
wtf.choco.arrows.api.property.SimpleArrowProperty
- All Implemented Interfaces:
 ArrowPropertyValue
- Direct Known Subclasses:
 DynamicArrowPropertyValue
public class SimpleArrowProperty extends Object implements ArrowPropertyValue
Represents an 
ArrowPropertyValue with a fixed value.- Author:
 - Parker Hawke - Choco
 
- 
Constructor Summary
Constructors Constructor Description SimpleArrowProperty(Object value)Construct a new arrow property with the given value. - 
Method Summary
Modifier and Type Method Description booleangetAsBoolean()Get this value as a primitive boolean.bytegetAsByte()Get this value as a primitive byte.doublegetAsDouble()Get this value as a primitive double.floatgetAsFloat()Get this value as a primitive float.intgetAsInt()Get this value as a primitive int.longgetAsLong()Get this value as a primitive long.shortgetAsShort()Get this value as a primitive short.StringgetAsString()Get this value as a String.ObjectgetValue()Get this value. 
- 
Constructor Details
- 
SimpleArrowProperty
Construct a new arrow property with the given value.- Parameters:
 value- the value
 
 - 
 - 
Method Details
- 
getAsInt
public int getAsInt()Description copied from interface:ArrowPropertyValueGet this value as a primitive int.- Specified by:
 getAsIntin interfaceArrowPropertyValue- Returns:
 - an int
 
 - 
getAsFloat
public float getAsFloat()Description copied from interface:ArrowPropertyValueGet this value as a primitive float.- Specified by:
 getAsFloatin interfaceArrowPropertyValue- Returns:
 - a float
 
 - 
getAsDouble
public double getAsDouble()Description copied from interface:ArrowPropertyValueGet this value as a primitive double.- Specified by:
 getAsDoublein interfaceArrowPropertyValue- Returns:
 - a double
 
 - 
getAsLong
public long getAsLong()Description copied from interface:ArrowPropertyValueGet this value as a primitive long.- Specified by:
 getAsLongin interfaceArrowPropertyValue- Returns:
 - a long
 
 - 
getAsShort
public short getAsShort()Description copied from interface:ArrowPropertyValueGet this value as a primitive short.- Specified by:
 getAsShortin interfaceArrowPropertyValue- Returns:
 - a short
 
 - 
getAsByte
public byte getAsByte()Description copied from interface:ArrowPropertyValueGet this value as a primitive byte.- Specified by:
 getAsBytein interfaceArrowPropertyValue- Returns:
 - a byte
 
 - 
getAsBoolean
public boolean getAsBoolean()Description copied from interface:ArrowPropertyValueGet this value as a primitive boolean.- Specified by:
 getAsBooleanin interfaceArrowPropertyValue- Returns:
 - a boolean
 
 - 
getAsString
Description copied from interface:ArrowPropertyValueGet this value as a String.- Specified by:
 getAsStringin interfaceArrowPropertyValue- Returns:
 - a string
 
 - 
getValue
Description copied from interface:ArrowPropertyValueGet this value.- Specified by:
 getValuein interfaceArrowPropertyValue- Returns:
 - the value
 
 
 -