public interface DriveElement
| Modifier and Type | Method and Description |
|---|---|
DriveElement |
add(DriveElement driveElement)
Adds drive elements together.
|
DriveElement |
deepClone()
Deep clones this element and returns the clone
|
Boolean |
getAsBoolean() |
Character |
getAsChar() |
Double |
getAsDouble() |
DriveElement |
getAsElement() |
DriveElementArray |
getAsElementArray() |
Float |
getAsFloat() |
Integer |
getAsInt() |
Long |
getAsLong() |
DriveObject |
getAsObject() |
Short |
getAsShort() |
String |
getAsString() |
Object |
getPrimitiveValue() |
HashMap<String,DriveElement> |
getSubComponents() |
DriveElement |
subtract(DriveElement driveElement)
Subtracts a Drive element from this element leaving only the difference
of this object compared to the parameter element.
|
Boolean getAsBoolean() throws ClassCastException, NotAPrimitiveTypeException
BooleanClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeShort getAsShort() throws ClassCastException, NotAPrimitiveTypeException
ShortClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeInteger getAsInt() throws ClassCastException, NotAPrimitiveTypeException
IntegerClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeLong getAsLong() throws ClassCastException, NotAPrimitiveTypeException
LongClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeCharacter getAsChar() throws ClassCastException, NotAPrimitiveTypeException
CharacterClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeString getAsString() throws ClassCastException, NotAPrimitiveTypeException
StringClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeFloat getAsFloat() throws ClassCastException, NotAPrimitiveTypeException
FloatClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeDouble getAsDouble() throws ClassCastException, NotAPrimitiveTypeException
DoubleClassCastException - thrown if the element is not that typeNotAPrimitiveTypeException - thrown if the element is not a primitive typeDriveObject getAsObject() throws ClassCastException
DriveObjectClassCastException - thrown if the element is not that typeDriveElement getAsElement() throws ClassCastException
DriveElementClassCastException - thrown if the element is not that typeDriveElementArray getAsElementArray() throws ClassCastException
DriveElementArrayClassCastException - thrown if the element is not that typeObject getPrimitiveValue()
HashMap<String,DriveElement> getSubComponents()
DriveElement subtract(DriveElement driveElement)
driveElement - the element to subtractDriveElement add(DriveElement driveElement)
driveElement - the drive element to addDriveElement deepClone()
Copyright © 2020. All rights reserved.