java.lang.Object
de.linusdev.data.implemantations.SAODataMapImpl<O>
- Direct Known Subclasses:
SODataMapImpl
-
Field Summary
FieldsFields inherited from interface de.linusdev.data.AbstractData
PARSER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.linusdev.data.AbstractData
addIfNotNull, addIfOptionalExists, addOrReplace, convertAndProcessIfContained, convertAndProcessIfContainedAndRequireNotNull, convertAndProcessListIfContained, convertWithExceptionAndProcessIfContained, convertWithExceptionAndProcessIfContainedAndRequireNotNull, convertWithExceptionAndProcessListIfContained, get, get, get, getAndConvert, getAndConvert, getAndConvertOrDefault, getAndConvertOrDefaultBoth, getAndConvertWithException, getAndConvertWithException, getAndRequireNotNull, getAndRequireNotNullAndConvert, getAndRequireNotNullAndConvertWithException, getAs, getAs, getAs, getAsAndRequireNotNull, getContainer, getData, getList, getList, getListAndConvert, getListAndConvertAndFreeMemory, getListAndConvertWithException, getListAndConvertWithExceptionAndFreeMemory, getNumberAsByte, getNumberAsDouble, getNumberAsFloat, getNumberAsInt, getNumberAsLong, getNumberAsShort, getOptionalValue, getOptionalValueAndConvert, getOptionalValueAndConvertWithException, getOrDefault, getOrDefault, getOrDefaultBoth, getParseType, processIfContained, processIfContainedAndRequireNotNull, processIfNotNull, processListIfContained, toJsonString, toRecordMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
entries
-
-
Constructor Details
-
SAODataMapImpl
-
-
Method Details
-
add
Description copied from interface:AbstractDataAdds a newEntry.
This method might not check, if a
Entrywith given key already exits. Depending on the implementation, this might even override existing mappings (for ExampleSODataMapImpl).- Specified by:
addin interfaceAbstractData<String,O> - Parameters:
key- keyvalue- value- Returns:
trueif a newEntrywas added,falseotherwise
-
addEntry
Description copied from interface:AbstractDataAdds a newEntry.
This method might not check, if a
Entrywith given key already exits (depending on the implementation)- Specified by:
addEntryin interfaceAbstractData<String,O> - Parameters:
entry- entry to add
-
remove
Description copied from interface:AbstractDataRemoves
Entrywith given key. If no such entry exists nothing happens.- Specified by:
removein interfaceAbstractData<String,O> - Parameters:
key- key for the entry to remove- Returns:
- the removed
Entryornullif no entry was removed.
-
getEntry
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceAbstractData<String,O> - Returns:
trueif this data does not contain any entries,falseotherwise
-
size
public int size()- Specified by:
sizein interfaceAbstractData<String,O> - Returns:
- current amount of
entriescontained.
-
iterator
-