Class Bag
java.lang.Object
us.irdev.bedrock.bag.Bag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBagArray
(String key) Retrieve a mapped element and return it as a BagArray.getBagArray
(String key, Supplier<BagArray> notFound) Retrieve a mapped element and return it as a BagArray.getBagObject
(String key) Retrieve a mapped element and return it as a BagObject.getBagObject
(String key, Supplier<BagObject> notFound) Retrieve a mapped element and return it as a BagObject.getBoolean
(String key) Retrieve a mapped element and return it as a Boolean.getBoolean
(String key, Supplier<Boolean> notFound) Retrieve a mapped element and return it as a Boolean.Retrieve a mapped element and return it as a Double.Retrieve a mapped element and return it as a Double.<EnumType extends Enum<EnumType>>
EnumType<EnumType extends Enum<EnumType>>
EnumTypeRetrieve a mapped element and return it as a Float.Retrieve a mapped element and return it as a Float.getInteger
(String key) Retrieve a mapped element and return it as an Integer.getInteger
(String key, Supplier<Integer> notFound) Retrieve a mapped element and return it as an Integer.Retrieve a mapped element and return it as a Long.Retrieve a mapped element and return it as a Long.abstract Object
Retrieve a mapped element and return it as a String.Retrieve a mapped element and return it as a String.int
hashCode()
boolean
match
(BooleanExpr booleanExpr) Returns true if the Selectable matches the 'match' criteriatoString()
abstract String
-
Constructor Details
-
Bag
public Bag()
-
-
Method Details
-
getObject
-
match
Returns true if the Selectable matches the 'match' criteria- Parameters:
booleanExpr
- a BooleanExpr containing criteria:- Returns:
-
getString
-
getString
Retrieve a mapped element and return it as a String.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new String if the requested key was not found- Returns:
- The element as a string, or notFound if the element is not found.
-
getBagObject
-
getBagObject
Retrieve a mapped element and return it as a BagObject.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new BagObject if the requested key was not found- Returns:
- The element as a BagObject, or notFound if the element is not found.
-
getBagArray
-
getBagArray
Retrieve a mapped element and return it as a BagArray.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new BagArray if the requested key was not found- Returns:
- The element as a BagArray, or notFound if the element is not found.
-
getEnum
-
getEnum
-
getBoolean
-
getBoolean
Retrieve a mapped element and return it as a Boolean.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new Boolean if the requested key was not found- Returns:
- The element as a Boolean, or notFound if the element is not found.
-
getLong
-
getLong
Retrieve a mapped element and return it as a Long.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new Long if the requested key was not found- Returns:
- The element as a Long, or notFound if the element is not found.
-
getInteger
-
getInteger
Retrieve a mapped element and return it as an Integer.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new Integer if the requested key was not found- Returns:
- The element as an Integer, or notFound if the element is not found.
-
getDouble
-
getDouble
Retrieve a mapped element and return it as a Double.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new Double if the requested key was not found- Returns:
- The element as a Double, or notFound if the element is not found.
-
getFloat
-
getFloat
Retrieve a mapped element and return it as a Float.- Parameters:
key
- A string value used to index the element.notFound
- A function to create a new Float if the requested key was not found- Returns:
- The element as a Float, or notFound if the element is not found.
-
equals
-
hashCode
-
toString
-
toString
-