java.lang.Object
com.aoapps.web.resources.registry.Group
- All Implemented Interfaces:
Serializable
Groups are named sets of resources, along with ordering requirements.
- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Group
copy()
Gets a deep copy of this group.<R extends Resource<R> & Comparable<? super R>,
S extends Resources<R>>
Resources<R> getResources
(Class<R> clazz, SerializableFunction<? super Collection<? extends S>, S> unionizer) Gets the resources for a given type.boolean
isEmpty()
Gets all resources are empty.
-
Field Details
-
styles
The partition for CSS styles.- See Also:
-
scripts
The partition for scripts.- See Also:
-
-
Constructor Details
-
Group
public Group()Creates a new group. -
Group
Copy constructor. -
Group
Union constructor.
-
-
Method Details
-
copy
Gets a deep copy of this group. -
getResources
public <R extends Resource<R> & Comparable<? super R>,S extends Resources<R>> Resources<R> getResources(Class<R> clazz, SerializableFunction<? super Collection<? extends S>, S> unionizer) Gets the resources for a given type. -
isEmpty
public boolean isEmpty()Gets all resources are empty.- See Also:
-