public static class CachedPage.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Creates the builder with defaults
|
Modifier and Type | Method and Description |
---|---|
CachedPage |
build()
Builds the cached page
|
CachedPage.Builder |
setCacheTime(java.util.Date cacheTime)
Sets the CacheTime for the object
|
CachedPage.Builder |
setData(byte[] data)
Sets the Data for the object
|
CachedPage.Builder |
setData(java.lang.String data)
Sets the Data for the object
|
CachedPage.Builder |
setGeneratedHash(java.lang.String hash)
Sets the hash for this page
|
CachedPage.Builder |
setMimeType(java.lang.String mimeType)
Sets the MimeType for the object
|
CachedPage.Builder |
setName(java.lang.String name)
Sets the Name for the object
|
CachedPage.Builder |
setUrl(java.lang.String url)
Sets the Url for the object
|
java.lang.String |
toString() |
@NotNull public CachedPage.Builder setCacheTime(@Nullable java.util.Date cacheTime)
cacheTime
- The new value for CacheTime@NotNull public CachedPage.Builder setName(@NotNull java.lang.String name)
name
- The new value for Name@NotNull public CachedPage.Builder setUrl(@Nullable java.lang.String url)
url
- The new value for Url@NotNull public CachedPage.Builder setMimeType(@NotNull java.lang.String mimeType)
mimeType
- The new value for MimeType@NotNull public CachedPage.Builder setData(@NotNull byte[] data)
data
- The new value for Data@NotNull public CachedPage.Builder setData(@NotNull java.lang.String data)
data
- The new value for Data@NotNull public CachedPage.Builder setGeneratedHash(@Nullable java.lang.String hash)
hash
- The hash for this page@Nullable public CachedPage build()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object