Package org.apache.wicket.pageStore
Class InMemoryPageStore.MemoryData
- java.lang.Object
-
- org.apache.wicket.pageStore.InMemoryPageStore.MemoryData
-
- All Implemented Interfaces:
Iterable<IManageablePage>
,InMemoryPageStore.IMemoryData
- Direct Known Subclasses:
InMemoryPageStore.CountLimitedData
,InMemoryPageStore.SizeLimitedData
- Enclosing class:
- InMemoryPageStore
protected static class InMemoryPageStore.MemoryData extends Object implements InMemoryPageStore.IMemoryData
List based implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MemoryData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IManageablePage page)
Add a page.IManageablePage
get(int pageId)
Get a page.Iterator<IManageablePage>
iterator()
IManageablePage
remove(int pageId)
Remove a page.protected void
removeOldest()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MemoryData
protected MemoryData()
-
-
Method Detail
-
iterator
public Iterator<IManageablePage> iterator()
- Specified by:
iterator
in interfaceIterable<IManageablePage>
-
add
public void add(IManageablePage page)
Description copied from interface:InMemoryPageStore.IMemoryData
Add a page.- Specified by:
add
in interfaceInMemoryPageStore.IMemoryData
-
remove
public IManageablePage remove(int pageId)
Description copied from interface:InMemoryPageStore.IMemoryData
Remove a page.- Specified by:
remove
in interfaceInMemoryPageStore.IMemoryData
- Returns:
-
get
public IManageablePage get(int pageId)
Description copied from interface:InMemoryPageStore.IMemoryData
Get a page.- Specified by:
get
in interfaceInMemoryPageStore.IMemoryData
- Returns:
-
removeOldest
protected void removeOldest()
-
-