public class DataFixUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
ceillog2(int input) |
static <T> (T) -> T |
consumerToFunction((T) -> void consumer) |
static int |
getSubVersion(int key) |
static int |
getVersion(int key) |
static <T> T |
make(by-name T factory) |
static <T> T |
make(T t,
(T) -> void consumer) |
static int |
makeKey(int version) |
static int |
makeKey(int version,
int subVersion) |
static <U> Optional<U> |
or(Optional<? extends U> optional,
by-name ? extends Optional<? extends U> other) |
static <U> U |
orElse(Optional<? extends U> optional,
U other) |
static <U> U |
orElseGet(Optional<? extends U> optional,
by-name ? extends U other) |
static int |
smallestEncompassingPowerOfTwo(int input) |
static byte[] |
toArray(ByteBuffer input) |
public static int smallestEncompassingPowerOfTwo(int input)
public static int ceillog2(int input)
public static <T> T make(by-name T factory)
public static <T> T make(T t, (T) -> void consumer)
public static <U> U orElse(Optional<? extends U> optional, U other)
public static <U> Optional<U> or(Optional<? extends U> optional, by-name ? extends Optional<? extends U> other)
public static byte[] toArray(ByteBuffer input)
public static int makeKey(int version)
public static int makeKey(int version, int subVersion)
public static int getVersion(int key)
public static int getSubVersion(int key)