Class SetModel<T>

    • Constructor Detail

      • SetModel

        public SetModel​(java.util.Set<T> set)
        Creates model that will contain set.
        Parameters:
        set - the set
      • SetModel

        public SetModel()
    • Method Detail

      • ofSet

        public static <C> IModel<java.util.Set<C>> ofSet​(java.util.Set<C> set)
        Factory method for models that contain sets. This factory method will automatically rebuild a nonserializable set into a serializable one.
        Type Parameters:
        C - model type
        Parameters:
        set - The Set, which may or may not be Serializable
        Returns:
        A IModel object wrapping the Set
      • newSerializableCollectionOf

        protected java.util.Set<T> newSerializableCollectionOf​(java.util.Set<T> object)
        Creates a serializable version of the object. The object is usually a collection.
        Specified by:
        newSerializableCollectionOf in class GenericCollectionModel<java.util.Set<T>>
        Parameters:
        object - the object
        Returns:
        serializable version of object