public class SupplierUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Supplier<DefaultEdge> |
DEFAULT_EDGE_SUPPLIER
Supplier for
DefaultEdge. |
static java.util.function.Supplier<DefaultWeightedEdge> |
DEFAULT_WEIGHTED_EDGE_SUPPLIER
Supplier for
DefaultWeightedEdge. |
static java.util.function.Supplier<java.lang.Object> |
OBJECT_SUPPLIER
Supplier for
Object. |
| Constructor and Description |
|---|
SupplierUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Supplier<DefaultEdge> |
createDefaultEdgeSupplier()
Create a default edge supplier.
|
static java.util.function.Supplier<DefaultWeightedEdge> |
createDefaultWeightedEdgeSupplier()
Create a default weighted edge supplier.
|
static java.util.function.Supplier<java.lang.Integer> |
createIntegerSupplier()
Create an integer supplier which returns a sequence starting from zero.
|
static java.util.function.Supplier<java.lang.Integer> |
createIntegerSupplier(int start)
Create an integer supplier which returns a sequence starting from a specific numbers.
|
static java.util.function.Supplier<java.lang.Long> |
createLongSupplier()
Create a long supplier which returns a sequence starting from zero.
|
static java.util.function.Supplier<java.lang.Long> |
createLongSupplier(long start)
Create a long supplier which returns a sequence starting from a specific numbers.
|
static java.util.function.Supplier<java.lang.String> |
createRandomUUIDStringSupplier()
Create a string supplier which returns random UUIDs.
|
static java.util.function.Supplier<java.lang.String> |
createStringSupplier()
Create a string supplier which returns unique strings.
|
static java.util.function.Supplier<java.lang.String> |
createStringSupplier(int start)
Create a string supplier which returns unique strings.
|
static <T> java.util.function.Supplier<T> |
createSupplier(java.lang.Class<? extends T> clazz)
Create a supplier from a class which calls the default constructor.
|
public static final java.util.function.Supplier<DefaultEdge> DEFAULT_EDGE_SUPPLIER
DefaultEdge.public static final java.util.function.Supplier<DefaultWeightedEdge> DEFAULT_WEIGHTED_EDGE_SUPPLIER
DefaultWeightedEdge.public static final java.util.function.Supplier<java.lang.Object> OBJECT_SUPPLIER
Object.public static <T> java.util.function.Supplier<T> createSupplier(java.lang.Class<? extends T> clazz)
T - the type of results supplied by this supplierclazz - the classpublic static java.util.function.Supplier<DefaultEdge> createDefaultEdgeSupplier()
public static java.util.function.Supplier<DefaultWeightedEdge> createDefaultWeightedEdgeSupplier()
public static java.util.function.Supplier<java.lang.Integer> createIntegerSupplier()
public static java.util.function.Supplier<java.lang.Integer> createIntegerSupplier(int start)
start - where to start the sequencepublic static java.util.function.Supplier<java.lang.Long> createLongSupplier()
public static java.util.function.Supplier<java.lang.Long> createLongSupplier(long start)
start - where to start the sequencepublic static java.util.function.Supplier<java.lang.String> createStringSupplier()
public static java.util.function.Supplier<java.lang.String> createRandomUUIDStringSupplier()
public static java.util.function.Supplier<java.lang.String> createStringSupplier(int start)
start - where to start the sequenceCopyright © 2019. All Rights Reserved.