public final class EncodeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static CounterConfiguration |
decodeConfiguration(Supplier<Byte> byteSupplier,
LongSupplier longSupplier,
IntSupplier intSupplier)
|
static Storage |
decodeStorage(byte flags)
Decodes the
CounterType . |
static CounterType |
decodeType(byte flags)
Decodes the
Storage . |
static void |
encodeConfiguration(CounterConfiguration configuration,
Consumer<Byte> byteConsumer,
LongConsumer longConsumer,
IntConsumer intConsumer)
Encodes the configuration.
|
static byte |
encodeTypeAndStorage(CounterConfiguration configuration)
Encodes the
Storage and the CounterType . |
public static Storage decodeStorage(byte flags)
CounterType
.CounterType
.encodeTypeAndStorage(CounterConfiguration)
public static CounterType decodeType(byte flags)
Storage
.Storage
.encodeTypeAndStorage(CounterConfiguration)
public static byte encodeTypeAndStorage(CounterConfiguration configuration)
Storage
and the CounterType
.
See the documentation for further details about the encoding.
Storage
and the CounterType
.public static void encodeConfiguration(CounterConfiguration configuration, Consumer<Byte> byteConsumer, LongConsumer longConsumer, IntConsumer intConsumer)
See the documentation for further details about the encoding.
public static CounterConfiguration decodeConfiguration(Supplier<Byte> byteSupplier, LongSupplier longSupplier, IntSupplier intSupplier)
CounterConfiguration
encoded by encodeConfiguration(CounterConfiguration, Consumer,
LongConsumer, IntConsumer)
.CounterConfiguration
.encodeConfiguration(CounterConfiguration, Consumer, LongConsumer, IntConsumer)
Copyright © 2021 JBoss by Red Hat. All rights reserved.