Class DefaultResources<T extends Resource>
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultResources<T>
- Type Parameters:
T- the type of the contained resources
- Direct Known Subclasses:
DefaultFileTree
Represents a set of resources. Resources are added by
add(T).
The Resources.stream() method returns a stream of the added resources.
The Resources.stream() method preserves the order in which the resources
were added.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultResources(ResourceType<?> type) Instantiates a new resource set. -
Method Summary
Methods inherited from class ResourceObject
isLocked, name, name, typeMethods inherited from interface Resource
asOfLocalized, cleanup, isNewerThan, name, type
-
Constructor Details
-
DefaultResources
Instantiates a new resource set.- Parameters:
type- the type of this instance as resource
-
-
Method Details
-
add
-
isEmpty
Description copied from interface:ResourcesChecks if is empty. The default implementation returnsget().isEmpty(). Implementing classes should provide a more efficient implementation. -
get
Description copied from interface:ResourcesReturns the resources as aSequencedSet. -
clear
-
hashCode
- Overrides:
hashCodein classResourceObject
-
equals
- Overrides:
equalsin classResourceObject
-
toString
- Overrides:
toStringin classResourceObject
-