Package com.github.tadukoo.util.pojo
Class AbstractMappedPojo
java.lang.Object
com.github.tadukoo.util.pojo.AbstractMappedPojo
- All Implemented Interfaces:
MappedPojo
- Direct Known Subclasses:
AbstractOrderedMappedPojo
Abstract Mapped Pojo is a simple implementation of the
MappedPojo interface that uses a
HashMap as its backing Map.- Since:
- Alpha v.0.2
- Version:
- Beta v.0.5
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new Mapped Pojo and initializes the backing Map.protectedAbstractMappedPojo(MappedPojo pojo) Creates a new Mapped Pojo, using the map from the given pojo. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tadukoo.util.pojo.MappedPojo
clear, getItem, getKeys, getListItem, getListItemNoThrow, getListItemNoThrow, getPojoItem, getPojoItemNoThrow, getPojoItemNoThrow, hasItem, hasKey, isEmpty, removeItem, setItem
-
Field Details
-
map
The map containing the items in this pojo
-
-
Constructor Details
-
AbstractMappedPojo
protected AbstractMappedPojo()Creates a new Mapped Pojo and initializes the backing Map. -
AbstractMappedPojo
Creates a new Mapped Pojo, using the map from the given pojo.- Parameters:
pojo- TheMappedPojoto copy the map from
-
-
Method Details
-
getMap
- Specified by:
getMapin interfaceMappedPojo- Returns:
- The full Map of items in the pojo
-