public final class CombinedResourceInfo extends Object
This class is a wrapper which collects all combined resources and stores it in the cache. A builder has been provided to create an instance of combined resource info and put it in the cache if absent.
Modifier and Type | Class and Description |
---|---|
static class |
CombinedResourceInfo.Builder
Use this builder to create an instance of combined resource info and put it in the cache if absent.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Returns true if the given object is also an instance of
CombinedResourceInfo and its ID equals to the
ID of the current combined resource info instance. |
static CombinedResourceInfo |
get(String id)
Returns the combined resource info identified by the given ID from the cache.
|
int |
getContentLength()
Returns the content length in bytes of this combined resource info.
|
long |
getLastModified()
Returns the last modified timestamp in milliseconds of this combined resource info.
|
Set<ResourceIdentifier> |
getResourceIdentifiers()
Returns the ordered set of resource identifiers of this combined resource info.
|
Set<Resource> |
getResources()
Returns the ordered set of resources of this combined resource info.
|
int |
hashCode()
Returns the sum of the hash code of this class and the ID.
|
String |
toString()
Returns the string representation of this combined resource info in the format of
|
public static CombinedResourceInfo get(String id)
id
- The ID of the combined resource info to be returned from the cache.public boolean equals(Object other)
CombinedResourceInfo
and its ID equals to the
ID of the current combined resource info instance.public int hashCode()
public String toString()
CombinedResourceInfo[id,resourceIdentifiers]Where
id
is the unique ID and resourceIdentifiers
is the ordered set of all resource
identifiers as is been created with the builder.public Set<ResourceIdentifier> getResourceIdentifiers()
public Set<Resource> getResources()
public int getContentLength()
public long getLastModified()
Copyright © 2012–2017 OmniFaces. All rights reserved.