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
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new Mapped Pojo and initializes the backing Map.protected
AbstractMappedPojo
(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, wait
Methods 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
- TheMappedPojo
to copy the map from
-
-
Method Details
-
getMap
- Specified by:
getMap
in interfaceMappedPojo
- Returns:
- The full Map of items in the pojo
-