Module com.wyu4.snowberryjam
Class RandomHolder
java.lang.Object
com.wyu4.snowberryjam.compiler.data.values.ValueHolder
com.wyu4.snowberryjam.compiler.data.values.builtin.RandomHolder
- All Implemented Interfaces:
BuiltInHolder
Value Holder that handles randomization
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.wyu4.snowberryjam.compiler.data.values.ValueHolder
checkValueIsConditional, equals, fromNode, getArray, getPointer, getSize, getString, isType, notEmpty, superEquals
-
Constructor Details
-
RandomHolder
public RandomHolder()
-
-
Method Details
-
getValue
Description copied from class:ValueHolderGet the value being pointed to casted as anObject. The contents being returned by this method are mutable.- Overrides:
getValuein classValueHolder- Returns:
- A random
Doublebetween 0 and 1 - See Also:
-
getId
Description copied from class:ValueHolderGet the ID of the value holder- Overrides:
getIdin classValueHolder- Returns:
SourceId.RANDOM
-
getType
Description copied from class:ValueHolderGet the type being pointed to- Overrides:
getTypein classValueHolder- Returns:
- Always returns
Double - See Also:
-
toString
- Overrides:
toStringin classValueHolder
-