org.apache.wicket.model.util
Class SetModel<T>

java.lang.Object
  extended by org.apache.wicket.model.util.GenericBaseModel<Set<T>>
      extended by org.apache.wicket.model.util.SetModel<T>
Type Parameters:
T - type of object inside set
All Implemented Interfaces:
Serializable, IClusterable, IDetachable, IModel<Set<T>>

public class SetModel<T>
extends GenericBaseModel<Set<T>>

Based on Model but for sets of serializable objects.

Author:
Timo Rantalaiho
See Also:
Serialized Form

Constructor Summary
SetModel()
          Creates empty model
SetModel(Set<T> set)
          Creates model that will contain set
 
Method Summary
protected  Set<T> createSerializableVersionOf(Set<T> object)
          Creates a serializable version of the object.
 
Methods inherited from class org.apache.wicket.model.util.GenericBaseModel
detach, equals, getObject, hashCode, setObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetModel

public SetModel()
Creates empty model


SetModel

public SetModel(Set<T> set)
Creates model that will contain set

Parameters:
set -
Method Detail

createSerializableVersionOf

protected Set<T> createSerializableVersionOf(Set<T> object)
Creates a serializable version of the object. The object is usually a collection.

Specified by:
createSerializableVersionOf in class GenericBaseModel<Set<T>>
Returns:
serializable version of object


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.