public final class Persistence extends Object
Modifier and Type | Method and Description |
---|---|
static SamplePersistence<Boolean> |
forBoolean()
Persistence implementation for Boolean samples.
|
static SamplePersistence<Integer> |
forInteger()
Persistence implementation for Integer samples.
|
static SamplePersistence<Integer> |
forIntegerWithDefault()
Persistence implementation for Integer samples.
|
static SamplePersistence<Object> |
forObject()
Persistence implementation for samples just using their toString method.
|
static SamplePersistence<String> |
forString()
Persistence implementation for String samples.
|
static SamplePersistence<String[]> |
forStringArray()
Persistence implementation for String array samples.
|
static SamplePersistence<List<String>> |
forStringList()
Persistence implementation for String list samples.
|
static <T> SamplePersistence<T> |
forType(Class resourceClass,
Class<? extends T> sampleType)
Persistence implementation for samples of dynamic type.
|
public static SamplePersistence<Boolean> forBoolean()
Persistence implementation for Boolean samples.
SamplePersistence
for boolean samplespublic static SamplePersistence<Integer> forInteger()
Persistence implementation for Integer samples.
SamplePersistence
for integer samplespublic static SamplePersistence<Integer> forIntegerWithDefault()
Persistence implementation for Integer samples.
SamplePersistence
for integer samplespublic static SamplePersistence<Object> forObject()
SamplePersistence
object.public static SamplePersistence<String> forString()
SamplePersistence
object.public static SamplePersistence<String[]> forStringArray()
Persistence implementation for String array samples.
SamplePersistence
for sampled arrays of stringspublic static SamplePersistence<List<String>> forStringList()
Persistence implementation for String list samples.
SamplePersistence
for sampled lists of stringspublic static <T> SamplePersistence<T> forType(Class resourceClass, Class<? extends T> sampleType)
Persistence implementation for samples of dynamic type.
T
- a T object.sampleType
- to fetch and persist resource forresourceClass
- a Class
object.SamplePersistence
for any
type of object which can be stored in Apache Common PropertiesConfigurationCopyright © 2017–2022 wcm.io QA. All rights reserved.