org.apache.velocity.tools.view.tools
Class AbstractSearchTool.StoredResults
java.lang.Object
org.apache.velocity.tools.view.tools.AbstractSearchTool.StoredResults
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- AbstractSearchTool
- public class AbstractSearchTool.StoredResults
- extends java.lang.Object
- implements java.io.Serializable
Simple utility class to hold a criterion and its result list.
This class is by default stored in a user's session,
so it implements Serializable, but its members are
transient. So functionally, it is not serialized and
the last results/criteria will not be persisted if
the session is serialized.
- See Also:
- Serialized Form
Field Summary |
private java.lang.Object |
crit
|
private java.util.List |
list
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
crit
private transient java.lang.Object crit
list
private transient java.util.List list
AbstractSearchTool.StoredResults
public AbstractSearchTool.StoredResults(java.lang.Object crit,
java.util.List list)
- Creates a new instance.
- Parameters:
crit
- the criteria for these resultslist
- the List
of results to store
getCriteria
public java.lang.Object getCriteria()
- Returns:
- the stored criteria object
getList
public java.util.List getList()
- Returns:
- the stored
List
of results
Copyright (c) 2003 Apache Software Foundation