A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages

A

accept(T) - Method in interface com.celeral.utils.function.AutoConsumer
Performs this operation on the given argument.
add(AutoCloseable) - Method in class com.celeral.utils.Closeables
Adds closeable for tracking purpose.
add(T) - Method in class com.celeral.utils.Consumables
Adds consumable for tracking purpose.
apply(T) - Method in interface com.celeral.utils.function.AutoFunction
Applies this function to the given argument.
applyWith(AutoSupplier<T>, AutoFunction<T, CompletableFuture<R>>, AutoConsumer<T>) - Static method in interface com.celeral.utils.Async
Returns a new CompletionStage with the same result or exception as the CompletionStage returned by the function.
applyWithAsync(AutoSupplier<T>, AutoFunction<T, CompletableFuture<R>>, AutoConsumer<T>) - Static method in interface com.celeral.utils.Async
Returns a new CompletionStage with the same result or exception as the CompletionStage returned by the function.
applyWithAsync(AutoSupplier<T>, AutoFunction<T, CompletableFuture<R>>, AutoConsumer<T>, Executor) - Static method in interface com.celeral.utils.Async
Returns a new CompletionStage with the same result or exception as the CompletionStage returned by the function.The return value is different if the releaser throws an exception signifying that the resource could not be released.
Async - Interface in com.celeral.utils
 
Attribute<T> - Class in com.celeral.utils
Attribute is a normalized key type for storing heterogeneous key/value pairs in a collection without losing the static type information.
Attribute(StringCodec<T>) - Constructor for class com.celeral.utils.Attribute
 
Attribute(T) - Constructor for class com.celeral.utils.Attribute
 
Attribute(T, StringCodec<T>) - Constructor for class com.celeral.utils.Attribute
 
Attribute.AttributeMap - Interface in com.celeral.utils
Parameterized and scoped context attribute map that supports serialization.
Attribute.AttributeMap.AttributeInitializer - Class in com.celeral.utils
This class inspects and initializes the attributes with their field names so that they can be used from properties files.
Attribute.AttributeMap.DefaultAttributeMap - Class in com.celeral.utils
DefaultAttributeMap is the default implementation of AttributeMap.
AttributeInitializer() - Constructor for class com.celeral.utils.Attribute.AttributeMap.AttributeInitializer
 
attributes - Variable in class com.celeral.utils.BaseContext
 
AutoConsumer<T> - Interface in com.celeral.utils.function
Represents an operation that accepts a single input argument and returns no result.
AutoFunction<T,​R> - Interface in com.celeral.utils.function
 
AutoSupplier<T> - Interface in com.celeral.utils.function
 

B

BaseContext - Class in com.celeral.utils
 
BaseContext(Attribute.AttributeMap, Context) - Constructor for class com.celeral.utils.BaseContext
 
Boolean2String() - Constructor for class com.celeral.utils.StringCodec.Boolean2String
 
buffer - Variable in class com.celeral.utils.Slice
 

C

Class2String() - Constructor for class com.celeral.utils.StringCodec.Class2String
 
clear() - Method in class com.celeral.utils.WeakIdentityHashMap
 
clone() - Method in interface com.celeral.utils.Attribute.AttributeMap
Clone the current map.
clone() - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
clone() - Method in class com.celeral.utils.Slice
Create deep copy of the slice.
close() - Method in class com.celeral.utils.Consumables
Consumes all the tracked consumables only if they are not protected.
close(Iterable<AutoCloseable>, String, Object...) - Static method in class com.celeral.utils.Closeables
Attempt to close all the resources in the order provided.
close(String, AutoCloseable...) - Static method in class com.celeral.utils.Closeables
Attempt to close all the resources in the order provided.
Closeables - Class in com.celeral.utils
Helper class to ensure that when more than one AutoClosable are closed serially, exception thrown by any of the close calls do not hinder closing of the subsequent Autocloseables.
Closeables() - Constructor for class com.celeral.utils.Closeables
Creates closeables instance without any message associated with it.
Closeables(AutoCloseable) - Constructor for class com.celeral.utils.Closeables
Creates closeable instance without any message associated with it and initializes the tracked resource list by adding the passed closeable.
Closeables(String, Object...) - Constructor for class com.celeral.utils.Closeables
Initializes the closeable with the given message pattern and the arguments for the message pattern.
codec - Variable in class com.celeral.utils.Attribute
 
Collection2String(String, StringCodec<T>) - Constructor for class com.celeral.utils.StringCodec.Collection2String
 
com.celeral.utils - package com.celeral.utils
Utility classes useful for writing code that complies with good coding practices.
com.celeral.utils.function - package com.celeral.utils.function
 
Consumables<T> - Class in com.celeral.utils
Helper class to ensure that when more than one consumables are consumed serially, exception thrown by any of the consume calls do not hinder the consumption of the subsequent consumables.
Consumables(AutoConsumer<T>, String, Object...) - Constructor for class com.celeral.utils.Consumables
Initializes the closeable with the given message pattern and the arguments for the message pattern.
consume(AutoConsumer<T>, Iterable<T>, String, Object...) - Static method in class com.celeral.utils.Consumables
Attempt to consume all the consumables in the order provided.
consume(String, AutoConsumer<T>, T...) - Static method in class com.celeral.utils.Consumables
Attempt to consume all the consumables in the order provided.
contains(Attribute<?>) - Method in interface com.celeral.utils.Attribute.AttributeMap
Return true if value for an attribute is set.
contains(Attribute<?>) - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
containsKey(Object) - Method in class com.celeral.utils.WeakIdentityHashMap
 
containsValue(Object) - Method in class com.celeral.utils.WeakIdentityHashMap
 
Context - Interface in com.celeral.utils
 
Context.ContextType - Enum in com.celeral.utils
Context type decides how the values for attributes are resolved in this context with reference to the values that may be present in the parent context.
createThrowable(String) - Method in interface com.celeral.utils.Throwables.ThrowableFactory
Create a throwable of type T using the message and the root cause.

D

DefaultAttributeMap() - Constructor for class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
defaultValue - Variable in class com.celeral.utils.Attribute
 

E

entrySet() - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
entrySet() - Method in interface com.celeral.utils.Attribute.AttributeMap
 
entrySet() - Method in class com.celeral.utils.WeakIdentityHashMap
 
Enum2String(Class<T>) - Constructor for class com.celeral.utils.StringCodec.Enum2String
 
equals(Object) - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
equals(Object) - Method in class com.celeral.utils.Attribute
 
equals(Object) - Method in class com.celeral.utils.Slice
 
expose() - Method in class com.celeral.utils.Consumables
Unprotects the tracked resources if they were in protected state due to call to Consumables.protect().

F

fromString(String) - Method in class com.celeral.utils.Object2JSON
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Boolean2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Class2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Collection2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Enum2String
 
fromString(String) - Method in interface com.celeral.utils.StringCodec
Given a string representation (typically from properties file) for an object , create object from it.
fromString(String) - Method in class com.celeral.utils.StringCodec.Integer2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Long2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Map2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Object2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Path2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.Short2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.String2String
 
fromString(String) - Method in class com.celeral.utils.StringCodec.URI2String
 

G

get() - Method in interface com.celeral.utils.function.AutoSupplier
Gets a result.
get(Attribute<T>) - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
get(Attribute<T>) - Method in interface com.celeral.utils.Attribute.AttributeMap
Return the attribute value for the given key.
get(Object) - Method in class com.celeral.utils.WeakIdentityHashMap
 
getAllAttributes(Context, Class<?>) - Static method in class com.celeral.utils.Attribute.AttributeMap.AttributeInitializer
 
getAttributes() - Method in class com.celeral.utils.BaseContext
 
getAttributes() - Method in interface com.celeral.utils.Context
Get the attributes associated with this context.
getAttributes(Class<?>) - Static method in class com.celeral.utils.Attribute.AttributeMap.AttributeInitializer
 
getGroup() - Method in class com.celeral.utils.NamedThreadFactory
Gets the current group of which newly created threads are members of.
getName() - Method in class com.celeral.utils.Attribute
 
getPattern() - Method in class com.celeral.utils.NamedThreadFactory
Gets the current pattern used to name the threads.
getSimpleName() - Method in class com.celeral.utils.Attribute
 
getSize(int) - Static method in class com.celeral.utils.VarInt
 
getValue(Attribute<T>) - Method in class com.celeral.utils.BaseContext
 
getValue(Attribute<T>) - Method in interface com.celeral.utils.Context
Get the value of the attribute associated with the current key by recursively traversing the contexts upwards to the application level.
GROUP_NAME - Static variable in class com.celeral.utils.NamedThreadFactory
 

H

hash(byte[], int) - Static method in class org.getopt.util.hash.MurmurHash
 
hash(byte[], int, int, int) - Static method in class org.getopt.util.hash.MurmurHash
 
hashCode() - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
hashCode() - Method in class com.celeral.utils.Attribute
 
hashCode() - Method in class com.celeral.utils.Slice
 

I

initialize(Class<?>) - Static method in class com.celeral.utils.Attribute.AttributeMap.AttributeInitializer
Initialize the static attributes defined in the class.
initThreadName(Thread) - Method in class com.celeral.utils.NamedThreadFactory
 
integer - Variable in class com.celeral.utils.VarInt.MutableInt
 
Integer2String() - Constructor for class com.celeral.utils.StringCodec.Integer2String
 
isEmpty() - Method in class com.celeral.utils.WeakIdentityHashMap
 

J

JAVA_CLASS_PATH - Static variable in interface com.celeral.utils.LogUtils
 
JAVA_LIBRARY_PATH - Static variable in interface com.celeral.utils.LogUtils
 

K

keySet() - Method in class com.celeral.utils.WeakIdentityHashMap
 

L

LD_LIBRARY_PATH - Static variable in interface com.celeral.utils.LogUtils
 
length - Variable in class com.celeral.utils.Slice
 
loadClass(String, ClassLoader...) - Static method in class com.celeral.utils.StringCodec.Object2String
 
logJavaClassPath(Logger) - Static method in interface com.celeral.utils.LogUtils
 
logJavaLibraryPath(Logger) - Static method in interface com.celeral.utils.LogUtils
 
logLDLibraryPath(Logger) - Static method in interface com.celeral.utils.LogUtils
 
logPath(Logger, String, String) - Static method in interface com.celeral.utils.LogUtils
 
LogUtils - Interface in com.celeral.utils
 
Long2String() - Constructor for class com.celeral.utils.StringCodec.Long2String
 

M

Map2String(String, String, StringCodec<K>, StringCodec<V>) - Constructor for class com.celeral.utils.StringCodec.Map2String
 
MASK - com.celeral.utils.Context.ContextType
The value if present in the current context or the default value.
MERGE - com.celeral.utils.Context.ContextType
The value if present in the current context is merged with the value that may be present in the parent context.
MurmurHash - Class in org.getopt.util.hash
This is a very fast, non-cryptographic hash suitable for general hash-based lookup.
MurmurHash() - Constructor for class org.getopt.util.hash.MurmurHash
 
MutableInt() - Constructor for class com.celeral.utils.VarInt.MutableInt
 
MutableInt(int) - Constructor for class com.celeral.utils.VarInt.MutableInt
 

N

name - Variable in class com.celeral.utils.Attribute
 
NamedThreadFactory - Class in com.celeral.utils
A Thread Factory where one can decide how they want to name the threads generated by this factory.
NamedThreadFactory(ThreadGroup) - Constructor for class com.celeral.utils.NamedThreadFactory
Creates a new ThreadFactory using the group and default pattern.The default pattern is "{groupName}-{poolSequence}-{threadSequence}"
NamedThreadFactory(ThreadGroup, String) - Constructor for class com.celeral.utils.NamedThreadFactory
Creates a new ThreadFactory using the group and the patten.
newThread(Runnable) - Method in class com.celeral.utils.NamedThreadFactory
 

O

Object2JSON<T> - Class in com.celeral.utils
Implementation of the StringCodec where object is converted to/from its JSON representation using Jackson's fasterxml library.
Object2JSON(ObjectMapper) - Constructor for class com.celeral.utils.Object2JSON
 
Object2String() - Constructor for class com.celeral.utils.StringCodec.Object2String
 
Object2String(String) - Constructor for class com.celeral.utils.StringCodec.Object2String
 
offset - Variable in class com.celeral.utils.Slice
 
org.getopt.util.hash - package org.getopt.util.hash
 
OVERRIDE - com.celeral.utils.Context.ContextType
The value if present in the current context overrides any value that may be present in the parent context.

P

PARENT - com.celeral.utils.Context.ContextType
The value if present in the parent context or the default value.
parentContext - Variable in class com.celeral.utils.BaseContext
 
Path2String() - Constructor for class com.celeral.utils.StringCodec.Path2String
 
POOL_SEQUENCE - Static variable in class com.celeral.utils.NamedThreadFactory
 
protect() - Method in class com.celeral.utils.Consumables
Protects the tracked resources from getting freed if Consumables.close() is called.
put(Attribute<T>, T) - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
put(Attribute<T>, T) - Method in interface com.celeral.utils.Attribute.AttributeMap
Assign value for a particular attributes.
put(K, V) - Method in class com.celeral.utils.WeakIdentityHashMap
 
putAll(Map<? extends K, ? extends V>) - Method in class com.celeral.utils.WeakIdentityHashMap
 

R

read(byte[], int, int, VarInt.MutableInt) - Static method in class com.celeral.utils.VarInt
 
readFully(InputStream) - Static method in class com.celeral.utils.StreamUtils
Reads all the bytes from the input stream until the stream's end is reached.
readResolve() - Method in class com.celeral.utils.SerializableObject
Create an instance of this class by invoking the copy constructor.
release(T, AutoConsumer<T>, Throwable) - Static method in interface com.celeral.utils.Async
 
remove(Object) - Method in class com.celeral.utils.WeakIdentityHashMap
 

S

separator - Variable in class com.celeral.utils.StringCodec.Object2String
 
SerializableObject - Class in com.celeral.utils
Helper base class to ensure that Java Serializer is able to work with the transient final fields in the class which extends this class.
SerializableObject() - Constructor for class com.celeral.utils.SerializableObject
 
setGroup(ThreadGroup) - Method in class com.celeral.utils.NamedThreadFactory
Replaces the group to create any new threads.
setPattern(String) - Method in class com.celeral.utils.NamedThreadFactory
Replace the pattern to create any new threads.
Short2String() - Constructor for class com.celeral.utils.StringCodec.Short2String
 
size() - Method in class com.celeral.utils.WeakIdentityHashMap
 
Slice - Class in com.celeral.utils
 
Slice(byte[]) - Constructor for class com.celeral.utils.Slice
 
Slice(byte[], int, int) - Constructor for class com.celeral.utils.Slice
 
StreamUtils - Class in com.celeral.utils
Utility functions to operate on the input/output streams.F*
StreamUtils() - Constructor for class com.celeral.utils.StreamUtils
 
String2String() - Constructor for class com.celeral.utils.StringCodec.String2String
 
StringCodec<T> - Interface in com.celeral.utils
This interface is essentially serializer/deserializer interface which works with String as the serialized type.
StringCodec.Boolean2String - Class in com.celeral.utils
 
StringCodec.Class2String<T> - Class in com.celeral.utils
 
StringCodec.Collection2String<T> - Class in com.celeral.utils
 
StringCodec.Enum2String<T extends java.lang.Enum<T>> - Class in com.celeral.utils
 
StringCodec.Integer2String - Class in com.celeral.utils
 
StringCodec.Long2String - Class in com.celeral.utils
 
StringCodec.Map2String<K,​V> - Class in com.celeral.utils
 
StringCodec.Object2String<T> - Class in com.celeral.utils
The attributes which represent arbitrary objects for which the schema cannot be standardized, we allow them to be represented as <ClassName>:<Constructor_String>:<Property_String> representation.
StringCodec.Path2String - Class in com.celeral.utils
 
StringCodec.Short2String - Class in com.celeral.utils
 
StringCodec.String2String - Class in com.celeral.utils
 
StringCodec.URI2String - Class in com.celeral.utils
 
stringValue() - Method in class com.celeral.utils.Slice
Constructs a new String by decoding the specified subarray of bytes using the platform's default charset.

T

THREAD_ID - Static variable in class com.celeral.utils.NamedThreadFactory
 
THREAD_NAME - Static variable in class com.celeral.utils.NamedThreadFactory
 
THREAD_SEQUENCE - Static variable in class com.celeral.utils.NamedThreadFactory
 
Throwables - Interface in com.celeral.utils
Collection of helper methods to ensure that exceptions are properly thrown.
Throwables.ThrowableFactory<T extends java.lang.Throwable> - Interface in com.celeral.utils
An interface to model the factory for creation of the Throwable objects which do not follow the standard constructor or require additional processing besides invocation of the standard constructors.
throwFormatted(Throwables.ThrowableFactory<T>, String, Object...) - Static method in interface com.celeral.utils.Throwables
Throws the throwable created by the factory upon invoking it with the formatted message and the null cause.
throwFormatted(Class<T>, String, Object...) - Static method in interface com.celeral.utils.Throwables
Throws the requested throwable after initializing it with the formatted message.
throwFormatted(Throwable, Class<T>, String, Object...) - Static method in interface com.celeral.utils.Throwables
Throws the requested throwable after initializing it with the formatted message and the passed cause.This function uses reflection on the passed subclass of Throwable or Throwable class itself if it was passed to identify a constructor which takes two arguments - the first one of type String, and the second one of type Throwable.
throwSneaky(Throwable) - Static method in interface com.celeral.utils.Throwables
 
toByteArray() - Method in class com.celeral.utils.Slice
 
toConsumer() - Method in interface com.celeral.utils.function.AutoConsumer
 
toFunction() - Method in interface com.celeral.utils.function.AutoFunction
 
toString() - Method in class com.celeral.utils.Attribute.AttributeMap.DefaultAttributeMap
 
toString() - Method in class com.celeral.utils.Attribute
 
toString() - Method in class com.celeral.utils.Slice
 
toString() - Method in class com.celeral.utils.VarInt.MutableInt
 
toString(Boolean) - Method in class com.celeral.utils.StringCodec.Boolean2String
 
toString(Class<? extends T>) - Method in class com.celeral.utils.StringCodec.Class2String
 
toString(Integer) - Method in class com.celeral.utils.StringCodec.Integer2String
 
toString(Long) - Method in class com.celeral.utils.StringCodec.Long2String
 
toString(Short) - Method in class com.celeral.utils.StringCodec.Short2String
 
toString(String) - Method in class com.celeral.utils.StringCodec.String2String
 
toString(URI) - Method in class com.celeral.utils.StringCodec.URI2String
 
toString(Path) - Method in class com.celeral.utils.StringCodec.Path2String
 
toString(Collection<T>) - Method in class com.celeral.utils.StringCodec.Collection2String
 
toString(Map<K, V>) - Method in class com.celeral.utils.StringCodec.Map2String
 
toString(T) - Method in class com.celeral.utils.Object2JSON
 
toString(T) - Method in class com.celeral.utils.StringCodec.Enum2String
 
toString(T) - Method in class com.celeral.utils.StringCodec.Object2String
 
toString(T) - Method in interface com.celeral.utils.StringCodec
Given a POJO, serialize it to a String object (typically to be stored in properties file).
toSupplier() - Method in interface com.celeral.utils.function.AutoSupplier
 
transferStateTo(Object) - Method in class com.celeral.utils.SerializableObject
Copy over non final and non transient values from src to dest object.

U

URI2String() - Constructor for class com.celeral.utils.StringCodec.URI2String
 

V

valueOf(String) - Static method in enum com.celeral.utils.Context.ContextType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.celeral.utils.Context.ContextType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.celeral.utils.WeakIdentityHashMap
 
VarInt - Class in com.celeral.utils
 
VarInt() - Constructor for class com.celeral.utils.VarInt
 
VarInt.MutableInt - Class in com.celeral.utils
 

W

WeakIdentityHashMap<K,​V> - Class in com.celeral.utils
An implementation of Map interface which provides the combination of IdentityHashMap and WeakHashMap.
WeakIdentityHashMap() - Constructor for class com.celeral.utils.WeakIdentityHashMap
Constructs the map with initial capacity 2.
WeakIdentityHashMap(int) - Constructor for class com.celeral.utils.WeakIdentityHashMap
Constructs the map with given initial capacity.
wrapIfChecked(Error) - Static method in interface com.celeral.utils.Throwables
Deprecated.
Error does not need to be wrapped; Instead of throw Throwables.wrapIfChecked(error); use throw error; directly.
wrapIfChecked(Exception) - Static method in interface com.celeral.utils.Throwables
Throws exception as it is if it is RuntimeException, otherwise wraps it in RuntimeException and throws it.
wrapIfChecked(RuntimeException) - Static method in interface com.celeral.utils.Throwables
Deprecated.
Unchecked exception (subclass of RuntimeException) does not need to be wrapped; Instead of Throwables.rethrow(runtime_exception); use throw runtime_exception; directly.
wrapIfChecked(Throwable) - Static method in interface com.celeral.utils.Throwables
Throws cause as it is if it is RuntimeException or Error, otherwise wraps it in RuntimeException and throws it.
write(int, byte[], int) - Static method in class com.celeral.utils.VarInt
Writes the Variable Sized Integer of Length 32.
write(int, byte[], int, int) - Static method in class com.celeral.utils.VarInt
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages