java.lang.Object
org.microbean.constant.Constables
A utility class containing
static
methods that can describe various things in Constable
ways.-
Method Summary
Modifier and TypeMethodDescriptionstatic final Optional<? extends ConstantDesc>
static final Optional<? extends ConstantDesc>
static final Optional<? extends ConstantDesc>
static final Optional<? extends ConstantDesc>
describeConstable
(Collection<?> elements) static final <E> Optional<? extends ConstantDesc>
describeConstable
(Collection<? extends E> elements, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) static final <E> Optional<? extends ConstantDesc>
describeConstable
(Collection<? extends E> elements, Function<? super Comparator<?>, ? extends Optional<? extends ConstantDesc>> cf, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) static final Optional<? extends ConstantDesc>
describeConstable
(List<?> elements) static final <E> Optional<? extends ConstantDesc>
describeConstable
(List<? extends E> elements, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) static final Optional<? extends ConstantDesc>
describeConstable
(Map.Entry<?, ?> entry) static final <K,
V> Optional<? extends ConstantDesc> describeConstable
(Map.Entry<? extends K, ? extends V> entry, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf) static final Optional<? extends ConstantDesc>
describeConstable
(Map<?, ?> map) static final <K,
V> Optional<? extends ConstantDesc> describeConstable
(Map<? extends K, ? extends V> map, Function<? super Comparator<?>, ? extends Optional<? extends ConstantDesc>> cf, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf) static final <K,
V> Optional<? extends ConstantDesc> describeConstable
(Map<? extends K, ? extends V> map, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf) static final Optional<? extends ConstantDesc>
describeConstable
(Optional<?> o) static final <T> Optional<? extends ConstantDesc>
describeConstable
(Optional<? extends T> o, Function<? super T, ? extends Optional<? extends ConstantDesc>> f) static final Optional<? extends ConstantDesc>
describeConstable
(Set<?> elements) static final <E> Optional<? extends ConstantDesc>
describeConstable
(Set<? extends E> elements, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) static final <E> Optional<? extends ConstantDesc>
describeConstable
(Set<? extends E> elements, Function<? super Comparator<?>, ? extends Optional<? extends ConstantDesc>> cf, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) static final <K,
V> Optional<? extends ConstantDesc> describeConstable
(K k, V v, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf)
-
Method Details
-
describeConstable
-
describeConstable
-
describeConstable
public static final <T> Optional<? extends ConstantDesc> describeConstable(Optional<? extends T> o, Function<? super T, ? extends Optional<? extends ConstantDesc>> f) -
describeConstable
-
describeConstable
-
describeConstable
-
describeConstable
public static final <E> Optional<? extends ConstantDesc> describeConstable(Collection<? extends E> elements, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) -
describeConstable
public static final <E> Optional<? extends ConstantDesc> describeConstable(Collection<? extends E> elements, Function<? super Comparator<?>, ? extends Optional<? extends ConstantDesc>> cf, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) -
describeConstable
-
describeConstable
public static final <E> Optional<? extends ConstantDesc> describeConstable(List<? extends E> elements, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) -
describeConstable
-
describeConstable
public static final <E> Optional<? extends ConstantDesc> describeConstable(Set<? extends E> elements, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) -
describeConstable
public static final <E> Optional<? extends ConstantDesc> describeConstable(Set<? extends E> elements, Function<? super Comparator<?>, ? extends Optional<? extends ConstantDesc>> cf, Function<? super E, ? extends Optional<? extends ConstantDesc>> f) -
describeConstable
-
describeConstable
public static final <K,V> Optional<? extends ConstantDesc> describeConstable(Map<? extends K, ? extends V> map, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf) -
describeConstable
public static final <K,V> Optional<? extends ConstantDesc> describeConstable(Map<? extends K, ? extends V> map, Function<? super Comparator<?>, ? extends Optional<? extends ConstantDesc>> cf, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf) -
describeConstable
-
describeConstable
public static final <K,V> Optional<? extends ConstantDesc> describeConstable(Map.Entry<? extends K, ? extends V> entry, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf) -
describeConstable
public static final <K,V> Optional<? extends ConstantDesc> describeConstable(K k, V v, Function<? super K, ? extends Optional<? extends ConstantDesc>> kf, Function<? super V, ? extends Optional<? extends ConstantDesc>> vf)
-