Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

accept(PooledDb) - Method in interface com.icodici.db.DbPool.DbConsumer
 
accept(PooledDb) - Method in interface com.icodici.db.DbPool.VoidDbConsumer
 
addBinaryField(String, int) - Method in class net.sergeych.recordsfile.StructureDescriptor
Add byte[] field.
addByteField(String) - Method in class net.sergeych.recordsfile.StructureDescriptor
 
addChange(int, Delta) - Method in class net.sergeych.diff.ListDelta
 
addClassAlias(Class<?>, String) - Method in class net.sergeych.map_serializer.MapSerializer
Set the class name alias for the given Class.
addConsumer(Consumer<T>) - Method in class net.sergeych.tools.AsyncEvent
Non blocking add consumer to the event.
addField(String, int) - Method in class net.sergeych.recordsfile.StructureDescriptor
Add ingeter field to the structure.
addField(String, int, Class) - Method in class net.sergeych.recordsfile.StructureDescriptor
Add field specifying both size in bytes and class of the object to unpack to.
addIntField(String) - Method in class net.sergeych.recordsfile.StructureDescriptor
 
addLongField(String) - Method in class net.sergeych.recordsfile.StructureDescriptor
 
addShortField(String) - Method in class net.sergeych.recordsfile.StructureDescriptor
 
addStringField(String, int) - Method in class net.sergeych.recordsfile.StructureDescriptor
Add string field to be packed usgin system default encoding (utf-8 mainly) into a fixed-size bytes slot.
addSuffixToBase(String) - Method in class net.sergeych.tools.FilenameTool
 
addToInt(String, int) - Method in class net.sergeych.tools.Binder
Add some delta to a numeric field with a given name that must exist and be convertible to integer.
array(Object...) - Static method in class net.sergeych.utils.Ut
Shortcut: return varargs as array
ArrayDelta<T,U> - Class in net.sergeych.diff
Compares delta of the primitive java arrays.
arrayToList(Object[]) - Static method in class net.sergeych.utils.Ut
 
arrayToStringList(Object[]) - Static method in class net.sergeych.utils.Ut
 
asyncCommands(ExecutorService) - Method in class net.sergeych.farcall.Farcall
Let farcall execute remote comands in the executor service.
asyncCommands() - Method in class net.sergeych.farcall.Farcall
Allow farcall to use own ExecutorSerice to run commands in parallel.
AsyncEvent<T> - Class in net.sergeych.tools
Asymchronous consumer-based event.
AsyncEvent() - Constructor for class net.sergeych.tools.AsyncEvent
 
Average - Class in net.sergeych.tools
Memory and calculation-effectiver way to calculate average and standard deviation over arbitrary number of samples.
Average() - Constructor for class net.sergeych.tools.Average
 
average() - Method in class net.sergeych.tools.Average
 
await() - Method in class net.sergeych.tools.AsyncEvent
Wait until the event is fired.
await(long) - Method in class net.sergeych.tools.AsyncEvent
Wait until the event is fired as much as specified number of milliseconds.
await() - Method in class net.sergeych.tools.DeferredResult
 
await(long) - Method in class net.sergeych.tools.DeferredResult
 

B

Base64 - Class in net.sergeych.utils
Encode arbitrary binary into printable ASCII using BASE64 encoding.
Base64() - Constructor for class net.sergeych.utils.Base64
constructor.
Base64u - Class in net.sergeych.utils
Works exactly like Base64 but safe in URL contexts.
Base64u() - Constructor for class net.sergeych.utils.Base64u
constructor.
BasicConnector - Class in net.sergeych.farcall
Created by sergeych on 13.04.16.
BasicConnector(InputStream, OutputStream) - Constructor for class net.sergeych.farcall.BasicConnector
 
between(T, U) - Static method in class net.sergeych.diff.Delta
Deply compare two objects and calculate the difference.
BiAdapter<T> - Interface in net.sergeych.biserializer
Adapter to de/serialize any existing class.
BiDeserializer - Class in net.sergeych.biserializer
Binder deserializer.
BiDeserializer(BiMapper) - Constructor for class net.sergeych.biserializer.BiDeserializer
Construct deserializer for a given class mapper
BiDeserializer() - Constructor for class net.sergeych.biserializer.BiDeserializer
Construct deserializer with DefaultBiMapper
BiDeserializer.ContextBlock<E extends java.lang.Throwable> - Interface in net.sergeych.biserializer
A lambda to call with context, could throw an exception of set type.
bigValue - Variable in class net.sergeych.boss.Boss.Header
 
BiMapper - Class in net.sergeych.biserializer
Mapper allows sny object types to have registered procedures to de/serialize self to the Map structures, e.g.
BiMapper() - Constructor for class net.sergeych.biserializer.BiMapper
Create empty mapper, knowing nothing about serialization.
BiMapper(BiMapper) - Constructor for class net.sergeych.biserializer.BiMapper
Create a mapper with copy of serialization information from a given mapper.
Bindable - Interface in net.sergeych.tools
Created by sergeych on 12.01.17.
Binder - Class in net.sergeych.tools
Created by sergeych on 02/12/16.
Binder(Map) - Constructor for class net.sergeych.tools.Binder
 
Binder() - Constructor for class net.sergeych.tools.Binder
 
Binder(Object...) - Constructor for class net.sergeych.tools.Binder
 
BiSerializable - Interface in net.sergeych.biserializer
The interface of class that can serialize and deserialize itself to/from Binder.
BiSerializationException - Exception in net.sergeych.biserializer
Generic exception during serialization/deserialization
BiSerializationException() - Constructor for exception net.sergeych.biserializer.BiSerializationException
 
BiSerializationException(String) - Constructor for exception net.sergeych.biserializer.BiSerializationException
 
BiSerializationException(String, Throwable) - Constructor for exception net.sergeych.biserializer.BiSerializationException
 
BiSerializationException(Throwable) - Constructor for exception net.sergeych.biserializer.BiSerializationException
 
BiSerializationException(String, Throwable, boolean, boolean) - Constructor for exception net.sergeych.biserializer.BiSerializationException
 
BiSerializer - Class in net.sergeych.biserializer
The serializer to convert objects and plain old data to binder-serialized form.
BiSerializer(BiMapper) - Constructor for class net.sergeych.biserializer.BiSerializer
Create serializer to use with a given mapper.
BiSerializer() - Constructor for class net.sergeych.biserializer.BiSerializer
Create serialized to work with default mapper, DefaultBiMapper.getInstance().
BiType - Annotation Type in net.sergeych.biserializer
Annotation that allows specify alias name for class and/or for field, see BiSerializable.
Boss - Class in net.sergeych.boss
BOSS (Binary Object Serialization Specification) protocol version 1.4 final stream mode specification (no-cache).
Boss() - Constructor for class net.sergeych.boss.Boss
 
Boss.Dictionary - Class in net.sergeych.boss
 
Boss.Header - Class in net.sergeych.boss
 
Boss.Reader - Class in net.sergeych.boss
 
Boss.Writer - Class in net.sergeych.boss
BOSS serializer.
BossBiMapper - Class in net.sergeych.biserializer
Default BiMapper provider to be used with the Boss protocol.
BossBiMapper() - Constructor for class net.sergeych.biserializer.BossBiMapper
 
BossConnector - Class in net.sergeych.farcall
Created by sergeych on 13.04.16.
BossConnector(InputStream, OutputStream) - Constructor for class net.sergeych.farcall.BossConnector
 
BufferedLogger - Class in net.sergeych.tools
Navigable fast asynchronous buffered logger, thread safe.
BufferedLogger(int) - Constructor for class net.sergeych.tools.BufferedLogger
Create buffered logger capable to hold in mempry up to specified number of entries, the excessive records will be purged automatically.
BufferedLogger.Entry - Class in net.sergeych.tools
Log entry structure provides ID to navigate, creation instant and the message.
ByteArrayDelta - Class in net.sergeych.diff
Compares delta of the primitive byte arrays.
ByteRingBuffer - Class in net.sergeych.tools
Efficient threadsafe blocking LIFO byte buffer.
ByteRingBuffer(int) - Constructor for class net.sergeych.tools.ByteRingBuffer
 
Bytes - Class in net.sergeych.utils
Wrap for byte[] utility class.
Bytes(String) - Constructor for class net.sergeych.utils.Bytes
 
Bytes(byte[]...) - Constructor for class net.sergeych.utils.Bytes
 
Bytes(InputStream, int) - Constructor for class net.sergeych.utils.Bytes
Construct by reading certain number of bytes, or all of them, from a stream.
Bytes(ByteArrayOutputStream) - Constructor for class net.sergeych.utils.Bytes
Construct from ByteArrayOutputStream.toByteArray() bytes
Bytes(int) - Constructor for class net.sergeych.utils.Bytes
Create zero-filled instance of the specified size
bytesToHex(byte[]) - Static method in class net.sergeych.tools.Do
 

C

call() - Method in interface net.sergeych.tools.ConsoleInterceptor.Block
 
camelToSnakeCase(String) - Static method in class net.sergeych.map_serializer.MapSerializer
convert camelCaseString to snake_case_string
cancel(boolean) - Method in class net.sergeych.tools.RunnableWithDynamicPeriod
 
CantProcessException(Exception) - Constructor for exception net.sergeych.map_serializer.MapSerializer.CantProcessException
 
CantProcessException(String) - Constructor for exception net.sergeych.map_serializer.MapSerializer.CantProcessException
 
ChangedItem<O,N> - Class in net.sergeych.diff
Represent an element that is changed without any further information, e.g.
ChangedItem(Delta, O, N) - Constructor for class net.sergeych.diff.ChangedItem
 
charToValue - Variable in class net.sergeych.utils.Base64
binary value encoded by a given letter of the alphabet 0..63, overridden in Base64u.
checkNotFrozen() - Method in class net.sergeych.tools.Binder
 
checkSame(A, B, Runnable) - Static method in class net.sergeych.tools.Do
 
classAliases - Variable in class net.sergeych.map_serializer.MapSerializer
 
classForName(String) - Method in class net.sergeych.map_serializer.MapSerializer
Could be overriden to support more complicated class-to-name logic.
className(Class<?>) - Method in class net.sergeych.map_serializer.MapSerializer
Could be overriden to support more complicated class-to-name logic.
clear() - Method in class net.sergeych.tools.BufferedLogger
clear the whole stored content.
clear() - Method in class net.sergeych.tools.Reporter
 
clearDB() - Method in class com.icodici.db.Db
 
clone() - Method in class com.icodici.db.Db
 
close() - Method in class com.icodici.db.Db
 
close() - Method in class com.icodici.db.DbPool
 
close() - Method in class com.icodici.db.PooledDb
 
close() - Method in class net.sergeych.boss.Boss.Reader
 
close() - Method in class net.sergeych.boss.Boss.Writer
 
close() - Method in class net.sergeych.farcall.BasicConnector
 
close() - Method in interface net.sergeych.farcall.Connector
Called by protocol when it is closing, and will not send and receive data anymore.
close() - Method in class net.sergeych.farcall.Farcall
 
close() - Method in class net.sergeych.farcall.Interconnection
 
close() - Method in class net.sergeych.farcall.Interconnection.QueueConnector
 
close() - Method in class net.sergeych.tools.BufferedLogger
 
close() - Method in class net.sergeych.tools.StreamConnector
 
closed - Variable in class net.sergeych.farcall.BasicConnector
 
code - Variable in class net.sergeych.boss.Boss.Header
 
collection(Object) - Static method in class net.sergeych.tools.Do
 
com.icodici.db - package com.icodici.db
 
Command - Class in net.sergeych.farcall
Farcall command representation.
compare(Delta, T[], U[]) - Static method in class net.sergeych.diff.ArrayDelta
Compare two arrays.
compare(Delta, byte[], byte[]) - Static method in class net.sergeych.diff.ByteArrayDelta
Compare two arrays.
compare(Delta, List<T>, List<U>) - Static method in class net.sergeych.diff.ListDelta
Compare two List instances.
compare(Delta, Map, Map) - Static method in class net.sergeych.diff.MapDelta
 
compare(Map, Map) - Static method in class net.sergeych.diff.MapDelta
Compare two maps with same key types.
compareTo(BufferedLogger.Entry) - Method in class net.sergeych.tools.BufferedLogger.Entry
Default comparator uses BufferedLogger.Entry.id as the natural order, not the instant.
concatenate(Bytes) - Method in class net.sergeych.utils.Bytes
Return new buffer that is a concatenation of this and other.
concatenate(List<T>) - Method in class net.sergeych.utils.Bytes
 
concatenate(byte[]) - Method in class net.sergeych.utils.Bytes
Return new buffer that is a concatenation of this and other.
concatenate(String) - Method in class net.sergeych.utils.Bytes
 
connectionString - Variable in class com.icodici.db.Db
 
Connector - Interface in net.sergeych.farcall
Connectors abstract the data transfer between Farcall instances.
console(String) - Method in class net.sergeych.tools.Reporter
print to console only, does notthing ing queit mode.
ConsoleInterceptor - Class in net.sergeych.tools
 
ConsoleInterceptor() - Constructor for class net.sergeych.tools.ConsoleInterceptor
 
ConsoleInterceptor.Block - Interface in net.sergeych.tools
 
containsKey(K) - Method in class net.sergeych.collections.Multimap
 
convertAllMapsToBinders(Object) - Static method in class net.sergeych.tools.Binder
Convert all maps in the object to binders and do it recursively.
copyOut(ConsoleInterceptor.Block) - Static method in class net.sergeych.tools.ConsoleInterceptor
 
correctedStdev() - Method in class net.sergeych.tools.Average
 
correctIntFromGMP() - Method in class net.sergeych.utils.Bytes
 
createDB(String) - Method in class com.icodici.db.Db
 
CreatedItem<T> - Class in net.sergeych.diff
New item inserted in some collection
CreatedItem(Delta, T) - Constructor for class net.sergeych.diff.CreatedItem
 
createTempDirectory() - Static method in class net.sergeych.utils.Ut
Create temporary folder.
cv - Static variable in class net.sergeych.utils.Base64
binary value encoded by a given letter of the alphabet 0..63.

D

d(String) - Method in class net.sergeych.tools.BufferedLogger
 
d(String) - Method in class net.sergeych.utils.LogPrinter
 
d(Callable<String>) - Method in class net.sergeych.utils.LogPrinter
 
d(String, Object...) - Method in class net.sergeych.utils.LogPrinter
 
Db - Class in com.icodici.db
Database "smart connection" tool.
Db(String) - Constructor for class com.icodici.db.Db
 
Db(String, Properties) - Constructor for class com.icodici.db.Db
 
Db(String, Properties, String) - Constructor for class com.icodici.db.Db
 
db() - Method in class com.icodici.db.DbPool
 
Db.Error - Exception in com.icodici.db
 
Db.RollbackException - Exception in com.icodici.db
 
DbPool - Class in com.icodici.db
 
DbPool(String, Properties, int) - Constructor for class com.icodici.db.DbPool
 
DbPool.DbConsumer<R> - Interface in com.icodici.db
 
DbPool.VoidDbConsumer - Interface in com.icodici.db
 
DEBUGGING - Static variable in class net.sergeych.utils.Base64
used to disable test driver.
decode(String) - Method in class net.sergeych.utils.Base64
decode a well-formed complete Base64 string back into an array of bytes.
decode(String) - Static method in class net.sergeych.utils.Safe58
 
decode(String, boolean) - Static method in class net.sergeych.utils.Safe58
 
decodeBase64(String) - Static method in class net.sergeych.tools.Do
 
decodeCompactString(String) - Static method in class net.sergeych.utils.Base64
 
decodeLines(String) - Static method in class net.sergeych.utils.Base64
Decodes a byte array from Base64 format and ignores line separators, tabs and blanks.
deepEqualityTest(Object, Object) - Static method in class net.sergeych.tools.Do
 
DefaultBiMapper - Class in net.sergeych.biserializer
Default BiMapper provider, constructs instances, see DefaultBiMapper.getInstance(), and utility functions.
DefaultBiMapper() - Constructor for class net.sergeych.biserializer.DefaultBiMapper
 
DeferredResult - Class in net.sergeych.tools
Promise-like object to wait for command answer.
DeferredResult() - Constructor for class net.sergeych.tools.DeferredResult
 
DeferredResult.Error - Exception in net.sergeych.tools
Exception raised if operation is failed and DeferredResult.getResult() returns Throwable, which is passed as exception cause (with stack trace this way).
DeferredResult.Failure - Exception in net.sergeych.tools
Exception raised when operation is failed and DeferredResult.getResult() passes non-exception object, which is available as DeferredResult.Failure.failureData.
DeferredResult.Handler - Interface in net.sergeych.tools
Callback to be executed on deferred result state changed
delay(long, Do.Action) - Static method in class net.sergeych.tools.Do
 
deleteRecursive(File) - Static method in class net.sergeych.utils.Ut
By default File#delete fails for non-empty directories, it works like "rm".
Delta<T,U> - Class in net.sergeych.diff
Deep compare of simple types, maps and lists.
Delta(Delta, T, U) - Constructor for class net.sergeych.diff.Delta
 
deserialize(Binder, BiDeserializer) - Method in interface net.sergeych.biserializer.BiAdapter
Reconstruct object using its serialized representation using deserializer for components.
deserialize(U) - Method in class net.sergeych.biserializer.BiDeserializer
Deserialize some object if need.
deserialize(Map, BiDeserializer) - Method in class net.sergeych.biserializer.BiMapper
Try to deserialize map containing serialized object, e.g.
deserialize(Map) - Method in class net.sergeych.biserializer.BiMapper
deserialize(Binder, BiDeserializer) - Method in interface net.sergeych.biserializer.BiSerializable
reset state of self according to the serialized data and using the specific deserializer.
deserialize(Map) - Static method in class net.sergeych.biserializer.BossBiMapper
 
deserialize(Map) - Static method in class net.sergeych.biserializer.DefaultBiMapper
 
deserializeCollection(Collection<?>) - Method in class net.sergeych.biserializer.BiDeserializer
Deserialize a collection.
deserializeInPlace(Map) - Method in class net.sergeych.biserializer.BiDeserializer
Modify a map by deserializing it's values in place.
deserializeInPlace(Map, BiDeserializer) - Method in class net.sergeych.biserializer.BiMapper
Update the map deserialziing it's values - e.g.
deserializeInPlace(Map) - Static method in class net.sergeych.biserializer.BossBiMapper
 
deserializeInPlace(Map) - Static method in class net.sergeych.biserializer.DefaultBiMapper
 
deserializeObject(Object) - Method in class net.sergeych.biserializer.BiMapper
 
deserializeObject(Object, BiDeserializer) - Method in class net.sergeych.biserializer.BiMapper
Deserialize any object, if possible.
destroy() - Method in class com.icodici.db.PooledDb
 
Dictionary() - Constructor for class net.sergeych.boss.Boss.Dictionary
 
different(Object, Object) - Static method in class net.sergeych.utils.Ut
Null-aware difference check.
Do - Class in net.sergeych.tools
Created by sergeych on 15/02/16.
Do() - Constructor for class net.sergeych.tools.Do
 
Do.Action - Interface in net.sergeych.tools
Interface to single method with no parameters throwing exception.
Do.Task<T> - Interface in net.sergeych.tools
 
Do.TaskWithoutResult - Interface in net.sergeych.tools
 
done(DeferredResult.Handler) - Method in class net.sergeych.tools.DeferredResult
Adds the callback that will be called when the operation is done, after success() or failure() respecive invocation.
dump(Object, Object...) - Static method in class net.sergeych.boss.Boss
Encodes one or more objects one by one.
dump() - Method in class net.sergeych.tools.StreamConnector
 
dump() - Method in class net.sergeych.utils.Bytes
Writes dump to standard output, in the same format as Bytes.toDump(byte[])
dump(byte[]) - Static method in class net.sergeych.utils.Bytes
Writes dump into standrd output.
dumpToArray(Object, Object...) - Static method in class net.sergeych.boss.Boss
Encodes one or more objects one by one.

E

e(String) - Method in class net.sergeych.tools.BufferedLogger
 
e(Callable<String>) - Method in class net.sergeych.utils.LogPrinter
 
e(String, Object...) - Method in class net.sergeych.utils.LogPrinter
 
EMPTY - Static variable in class net.sergeych.tools.Binder
An empty, unmodifiable Binder can be used as a returned value, for example, in an effective way
empty() - Method in class net.sergeych.utils.Bytes
Check whether that the buffer is empty
encode(byte[]) - Method in class net.sergeych.utils.Base64
Encode an arbitrary array of bytes as Base64 printable ASCII.
encode(byte[]) - Static method in class net.sergeych.utils.Safe58
 
encodeCompactString(byte[]) - Static method in class net.sergeych.utils.Base64
 
encodeLines(byte[]) - Static method in class net.sergeych.utils.Base64
 
encodeString(byte[]) - Static method in class net.sergeych.utils.Base64
 
Entry(Binder) - Constructor for class net.sergeych.tools.BufferedLogger.Entry
 
equals(Object) - Method in class com.icodici.db.Db
 
equals(Object) - Method in class net.sergeych.farcall.Farcall.CommandResult
 
equals(Object) - Method in class net.sergeych.utils.Bytes
 
Error(String) - Constructor for exception com.icodici.db.Db.Error
 
Error(String, Throwable) - Constructor for exception com.icodici.db.Db.Error
 
Error(String) - Constructor for exception net.sergeych.tools.Hashable.Error
 
Error(String, Exception) - Constructor for exception net.sergeych.tools.Hashable.Error
 
error(String, String, String) - Method in class net.sergeych.tools.Reporter
Report error.
execute(DbPool.DbConsumer<T>) - Method in class com.icodici.db.DbPool
 
execute(DbPool.VoidDbConsumer) - Method in class com.icodici.db.DbPool
 
executeFile(String) - Method in class com.icodici.db.Db
 

F

failure(DeferredResult.Handler) - Method in class net.sergeych.tools.DeferredResult
Adds failure callback.
Farcall - Class in net.sergeych.farcall
The Farcall protocol general implementation.
Farcall(Connector) - Constructor for class net.sergeych.farcall.Farcall
Create Farcall connected to some endpoint.
Farcall.CommandResult - Class in net.sergeych.farcall
Deferred result of the Farcall command execution, to be used inside the farcall package.
Farcall.RemoteException - Exception in net.sergeych.farcall
The exception information that was passed from the remote party, while executing some command.
Farcall.Target - Interface in net.sergeych.farcall
 
FilenameTool - Class in net.sergeych.tools
Helper tool for writing files with overwrite protection.
FilenameTool(String) - Constructor for class net.sergeych.tools.FilenameTool
 
FileTool - Class in net.sergeych.tools
Helper tool for writing files with overwrite protection.
FileTool() - Constructor for class net.sergeych.tools.FileTool
 
fillRandom(int) - Method in class net.sergeych.utils.Bytes
Return new block that is contcatenation of this block and length random bytes
finalize() - Method in class com.icodici.db.Db
 
finalize() - Method in class net.sergeych.tools.BufferedLogger
 
fire(T) - Method in class net.sergeych.tools.AsyncEvent
Fire the event if it was not yet fired.
fire() - Method in class net.sergeych.tools.AsyncEvent
 
flipSelf() - Method in class net.sergeych.utils.Bytes
Reverse order of own bytes.
flush() - Method in class net.sergeych.boss.Boss.Writer
 
flush() - Method in class net.sergeych.tools.BufferedLogger
Wait until all queued logging operation are finished.
flush(long) - Method in class net.sergeych.tools.BufferedLogger
Wait for log messages queue emptied up to specified number of milliseconds
forEach(BiConsumer<? super K, ? super Collection<V>>) - Method in class net.sergeych.collections.Multimap
 
freeze() - Method in class net.sergeych.tools.Binder
 
from(Object) - Static method in class net.sergeych.tools.Binder
Convert some map to the binder.
fromBase64(String) - Static method in class net.sergeych.utils.Bytes
Decode Base64 string into Bytes instance
fromBigInt(BigInteger) - Static method in class net.sergeych.utils.Bytes
 
fromDouble(double) - Static method in class net.sergeych.utils.Bytes
Create buffer as standard IEEE double(8) representation, little-endian.
fromHex(String) - Static method in class net.sergeych.utils.Bytes
Construct from hexadecimal string.
fromJson(JsonValue) - Static method in class net.sergeych.tools.JsonTool
 
fromJson(String) - Static method in class net.sergeych.tools.JsonTool
 
fromKeysValues(Object...) - Static method in class net.sergeych.tools.Binder
Convert "key, value" pairs from varargs into a Params.
fromMap(Map<String, Object>) - Method in class net.sergeych.map_serializer.MapSerializer
Instantiate object by its attributes map.
fromMap(Map<String, Object>, String) - Method in class net.sergeych.map_serializer.MapSerializer
Instantiate object with a given name and attributes map.
fromMap(Map<String, Object>, Class<T>) - Method in class net.sergeych.map_serializer.MapSerializer
Instantiate object of a given Class and initialize it with attributes in a map.
fromString(String) - Static method in class net.sergeych.utils.Bytes
 

G

get(K) - Method in class net.sergeych.collections.Multimap
Return possibly empty collection of elements associated with a given key.
get() - Method in class net.sergeych.tools.ByteRingBuffer
Get the next byte, block until available.
get(int) - Method in class net.sergeych.tools.ByteRingBuffer
Get several bytes from the queue (size can be any positive).
get() - Method in class net.sergeych.tools.RingBuffer
Get the next object, block until available.
getArray(String) - Method in class net.sergeych.tools.Binder
 
getBinary(String) - Method in class net.sergeych.tools.Binder
Get the binary as byte[].
getBinaryOrThrow(String) - Method in class net.sergeych.tools.Binder
Get the binary parameter as byte[] and throws exception if it is missing
getBinder(String) - Method in class net.sergeych.tools.Binder
Return Binder for the key, or empty binder if it does not exist.
getBinder(String, Binder) - Method in class net.sergeych.tools.Binder
 
getBinderOrThrow(String) - Method in class net.sergeych.tools.Binder
 
getBinderOrThrow(String...) - Method in class net.sergeych.tools.Binder
Create binder using a path, e.g.
getBinders(String) - Method in class net.sergeych.tools.Binder
 
getBoolean(String) - Method in class net.sergeych.tools.Binder
Deprecated.
getBoolean(String, Boolean) - Method in class net.sergeych.tools.Binder
Get the value as boolean, with given default value if it is missed
getBooleanOrThrow(String) - Method in class net.sergeych.tools.Binder
Get the boolean value of the specivied key or throw
getByteArrayBiAdapter() - Static method in class net.sergeych.biserializer.DefaultBiMapper
 
getBytesBiAdapter() - Static method in class net.sergeych.biserializer.DefaultBiMapper
 
getBytesOrThrow(String) - Method in class net.sergeych.tools.Binder
 
getChange(int) - Method in class net.sergeych.diff.ArrayDelta
Get a change for a given index.
getChange(int) - Method in class net.sergeych.diff.ByteArrayDelta
Get a change for a given index.
getChange(int) - Method in class net.sergeych.diff.ListDelta
Get a change for a given index.
getChange(T) - Method in class net.sergeych.diff.MapDelta
Get the difference for a given key
getChanges() - Method in class net.sergeych.diff.ArrayDelta
Get all changes as a map where key is an index of changed item and a value is a Delta instance describing the change.
getChanges() - Method in class net.sergeych.diff.ByteArrayDelta
Get all changes as a map where key is an index of changed item and a value is a Delta instance describing the change.
getChanges() - Method in class net.sergeych.diff.ListDelta
Get all changes as a map where key is an index of changed item and a value is a Delta instance describing the change.
getChanges() - Method in class net.sergeych.diff.MapDelta
Get all changes as a map where key is a key of the different items and a value is are Delta instances describing the changes.
getConnectionString() - Method in class com.icodici.db.Db
 
getConnectorA() - Method in class net.sergeych.farcall.Interconnection
 
getConnectorB() - Method in class net.sergeych.farcall.Interconnection
 
getContext() - Method in class net.sergeych.biserializer.BiDeserializer
Get the current context, if any.
getContextOrThrow() - Method in class net.sergeych.biserializer.BiDeserializer
Get context or throw exception if none is set.
getCopy() - Method in class net.sergeych.tools.BufferedLogger
Get a copy af all currently stored entries
getData() - Method in exception net.sergeych.farcall.Farcall.RemoteException
Additinal data can be supplied with error.
getData() - Method in class net.sergeych.utils.Bytes
 
getDouble(String) - Method in class net.sergeych.tools.Binder
 
getErrors() - Method in class net.sergeych.tools.Reporter
 
getException() - Method in class net.sergeych.informer.Informer.ExceptionContext
 
getFailureData() - Method in exception net.sergeych.tools.DeferredResult.Failure
 
getFilename() - Method in class net.sergeych.tools.FilenameTool
 
getFilenameParts(String) - Static method in class net.sergeych.tools.FilenameTool
 
getFirst(K) - Method in class net.sergeych.collections.Multimap
 
getInformer() - Method in class net.sergeych.informer.Informer.ExceptionContext
 
getInputStream() - Method in class net.sergeych.tools.StreamConnector
 
getInstance() - Static method in class net.sergeych.biserializer.BossBiMapper
 
getInstance() - Static method in class net.sergeych.biserializer.DefaultBiMapper
 
getInt(String) - Method in class net.sergeych.tools.Binder
Deprecated.
getInt(String, Integer) - Method in class net.sergeych.tools.Binder
 
getIntOrThrow(String) - Method in class net.sergeych.tools.Binder
 
getIntParam(String) - Method in class com.icodici.db.Db
 
getIntParam(String, int) - Method in class com.icodici.db.Db
 
getKeyParams() - Method in class net.sergeych.farcall.Command
 
getLast(int) - Method in class net.sergeych.tools.BufferedLogger
Return most recent record up to specified number of entries.
getList(K) - Method in class net.sergeych.collections.Multimap
Return all associated element as a list, possibly empty.
getList(String, List<T>) - Method in class net.sergeych.tools.Binder
 
getListOrThrow(String) - Method in class net.sergeych.tools.Binder
 
getLong(String) - Method in class net.sergeych.tools.Binder
Deprecated.
getLong(String, long) - Method in class net.sergeych.tools.Binder
 
getLongOrThrow(String) - Method in class net.sergeych.tools.Binder
 
getMessage(int) - Method in class net.sergeych.tools.Reporter
 
getMethod() - Method in class net.sergeych.informer.Informer.ExceptionContext
Which subscriber method has thrown and exception
getName() - Method in class net.sergeych.farcall.Command
 
getNestedDelta() - Method in class net.sergeych.diff.Delta
 
getOrCreateBinder(String) - Method in class net.sergeych.tools.Binder
 
getOrCreateList(String) - Method in class net.sergeych.tools.Binder
Get object as list, or create empty list if it is empty
getOrNull(String...) - Method in class net.sergeych.tools.Binder
 
getOrThrow(String) - Method in class net.sergeych.tools.Binder
Get object at key or throw IllegalArgumentException.
getOrThrow(String...) - Method in class net.sergeych.tools.Binder
 
getOut() - Method in class net.sergeych.boss.Boss.Writer
 
getOutputStream() - Method in class net.sergeych.tools.StreamConnector
 
getParam(String) - Method in class net.sergeych.farcall.Command
 
getParam(String, T) - Method in class net.sergeych.farcall.Command
 
getParam(int) - Method in class net.sergeych.farcall.Command
 
getParam(int, T) - Method in class net.sergeych.farcall.Command
 
getParams() - Method in class net.sergeych.farcall.Command
 
getParent() - Method in class net.sergeych.diff.Delta
 
getProperties() - Method in class com.icodici.db.Db
 
getRemoteErrorClass() - Method in exception net.sergeych.farcall.Farcall.RemoteException
 
getRemoteErrorText() - Method in exception net.sergeych.farcall.Farcall.RemoteException
 
getRemovedItem() - Method in class net.sergeych.diff.RemovedItem
 
getResult() - Method in class net.sergeych.tools.DeferredResult
getRng() - Static method in class net.sergeych.tools.Do
 
getSize() - Method in class net.sergeych.recordsfile.StructureDescriptor
Full structure size.
getSource() - Method in class net.sergeych.informer.LostEvent
 
getString(String, String) - Method in class net.sergeych.tools.Binder
 
getString(String) - Method in class net.sergeych.tools.Binder
Compatibility method.
getString(int) - Method in class net.sergeych.tools.ByteRingBuffer
Read bytes from the buffer, blocking untili available, and convert them to the UTF-8 string
getStringOrThrow(String) - Method in class net.sergeych.tools.Binder
Get the parameter as string.
getStringOrThrow(String...) - Method in class net.sergeych.tools.Binder
 
getStringParam(String) - Method in class com.icodici.db.Db
 
getStringParam(String, String) - Method in class com.icodici.db.Db
 
getSubscriber() - Method in class net.sergeych.informer.Informer.ExceptionContext
 
getZonedDateTime(String, ZonedDateTime) - Method in class net.sergeych.tools.Binder
 
getZonedDateTimeOrThrow(String) - Method in class net.sergeych.tools.Binder
 

H

handle(Object) - Method in interface net.sergeych.tools.DeferredResult.Handler
 
Hashable - Interface in net.sergeych.tools
Object that has hash representation and can be reconstructed from the hash Created by sergeych on 15/04/16.
Hashable.Error - Exception in net.sergeych.tools
 
hashCode() - Method in class com.icodici.db.Db
 
hashCode() - Method in class net.sergeych.farcall.Farcall.CommandResult
 
hashCode() - Method in class net.sergeych.utils.Bytes
 
Header(int, long) - Constructor for class net.sergeych.boss.Boss.Header
 
Header(int, BigInteger) - Constructor for class net.sergeych.boss.Boss.Header
 
hexToByteArray(String) - Static method in class net.sergeych.utils.Bytes
Convert HEX string (ignoring whitespaces) to a byte[]

I

i(String, Object...) - Method in class net.sergeych.utils.LogPrinter
 
id - Variable in class net.sergeych.tools.BufferedLogger.Entry
 
IGNORE - Static variable in class net.sergeych.utils.Base64
Marker value for chars we just ignore, e.g.
in - Variable in class net.sergeych.boss.Boss.Reader
 
in - Variable in class net.sergeych.farcall.BasicConnector
 
Informer - Class in net.sergeych.informer
The mechanism to convey any type of events to subscribers.
Informer() - Constructor for class net.sergeych.informer.Informer
 
Informer(Informer.ExceptionListener) - Constructor for class net.sergeych.informer.Informer
Create informer that listens to the subscriber exceptions which are otherwise ignored with no report.
Informer.ExceptionContext - Class in net.sergeych.informer
Context to carry subscriber exception information
Informer.ExceptionListener - Interface in net.sergeych.informer
Listener for exceptions thrown by subscribers
inParallel(Do.Task) - Static method in class net.sergeych.tools.Do
Immediately start specified task (e.g.
inParallel(Do.TaskWithoutResult) - Static method in class net.sergeych.tools.Do
 
inspect() - Method in class net.sergeych.utils.Bytes
Tries to convert bytes to UTF8 string.
instant - Variable in class net.sergeych.tools.BufferedLogger.Entry
 
interceptStdOut() - Method in class net.sergeych.tools.BufferedLogger
Start intercepting stdout and log it to the buffer on the fly.
Interconnection - Class in net.sergeych.farcall
The class that allow connecting two Connector instances directly.
Interconnection(int) - Constructor for class net.sergeych.farcall.Interconnection
 
Interconnection.QueueConnector - Class in net.sergeych.farcall
 
is(String) - Method in class net.sergeych.farcall.Command
Check the command name
isAutoClosing() - Method in class net.sergeych.farcall.BasicConnector
 
isClosed() - Method in class com.icodici.db.Db
 
isClosed() - Method in class net.sergeych.farcall.BasicConnector
 
isClosed() - Method in class net.sergeych.farcall.Farcall
 
isClosed() - Method in class net.sergeych.farcall.Interconnection.QueueConnector
 
isDone() - Method in class net.sergeych.tools.DeferredResult
Whether the deferred result is available already.
isEmpty() - Method in class net.sergeych.diff.ArrayDelta
 
isEmpty() - Method in class net.sergeych.diff.ByteArrayDelta
 
isEmpty() - Method in class net.sergeych.diff.ChangedItem
 
isEmpty() - Method in class net.sergeych.diff.CreatedItem
 
isEmpty() - Method in class net.sergeych.diff.Delta
 
isEmpty() - Method in class net.sergeych.diff.ListDelta
 
isEmpty() - Method in class net.sergeych.diff.MapDelta
 
isEmpty() - Method in class net.sergeych.diff.RemovedItem
 
isEmpty() - Method in class net.sergeych.tools.ByteRingBuffer
 
isEmpty() - Method in class net.sergeych.tools.RingBuffer
 
isFired() - Method in class net.sergeych.tools.AsyncEvent
 
isFrozen() - Method in class net.sergeych.tools.Binder
 
isJUnitTest() - Static method in class net.sergeych.utils.Ut
Check that current method is called from under junit test.
isQuiet() - Method in class net.sergeych.tools.Reporter
isSuccess() - Method in class net.sergeych.tools.DeferredResult
Whether the deferred result is available already and calculated successfully.
isSymlink(File) - Static method in class net.sergeych.utils.Ut
Hack.
isUseOldDates() - Static method in class net.sergeych.boss.Boss
 
isVerboseMode() - Method in class net.sergeych.tools.Reporter
 

J

join() - Method in class net.sergeych.tools.DeferredResult
Wait until the operation is somehow finished
join(long) - Method in class net.sergeych.tools.DeferredResult
wait until the operation is finished with maximum timeout
join(Collection<T>, String) - Static method in class net.sergeych.utils.Ut
Join string representation of items in the collection with a specified delimiter.
JsonConnector - Class in net.sergeych.farcall
the class to pack Farcall object tp json form and take care of Time() values too.
JsonConnector(InputStream, OutputStream) - Constructor for class net.sergeych.farcall.JsonConnector
 
JsonTool - Class in net.sergeych.tools
Handy tools to deal with JSON
JsonTool() - Constructor for class net.sergeych.tools.JsonTool
 

K

keySet() - Method in class net.sergeych.collections.Multimap
 

L

later(Do.Action) - Static method in class net.sergeych.tools.Do
 
later(Callable) - Static method in class net.sergeych.utils.Ut
Execute some callable in the separate thread (this implementation).
length() - Method in class net.sergeych.tools.Average
 
lineLength - Variable in class net.sergeych.utils.Base64
max chars per line, excluding lineSeparator.
lineSeparator - Variable in class net.sergeych.utils.Base64
how we separate lines, e.g.
list(U) - Static method in class net.sergeych.tools.Do
Convert native array or some collection fo list
list(T...) - Static method in class net.sergeych.utils.Ut
 
ListDelta<T,U> - Class in net.sergeych.diff
 
listOf(U...) - Static method in class net.sergeych.tools.Do
 
load(Bytes) - Static method in class net.sergeych.boss.Boss
Load boss-encoded object tree from binary data.
load(byte[]) - Static method in class net.sergeych.boss.Boss
Load boss-encoded object tree from binary data.
load(byte[], BiDeserializer) - Static method in class net.sergeych.boss.Boss
 
loadMap(Bytes) - Static method in class net.sergeych.boss.Boss
 
log(String) - Method in class net.sergeych.tools.BufferedLogger
Add log entry to the buffer.
log(char, String, String, Object...) - Method in class net.sergeych.utils.LogPrinter
 
log(char, String, Callable<String>) - Method in class net.sergeych.utils.LogPrinter
 
log(char, String, String) - Method in class net.sergeych.utils.LogPrinter
 
log - Static variable in class net.sergeych.utils.StaticLog
 
logicError(Exception) - Method in class net.sergeych.map_serializer.MapSerializer
 
LogPrinter - Class in net.sergeych.utils
Log reporting stub.
LogPrinter(String) - Constructor for class net.sergeych.utils.LogPrinter
 
LostEvent - Class in net.sergeych.informer
The event that is automatically posted if no one hash received some other posted event Created by sergeych on 14/02/16.
LostEvent(Object) - Constructor for class net.sergeych.informer.LostEvent
 

M

main(String[]) - Static method in class net.sergeych.utils.Base64
test driver.
main(String[]) - Static method in class net.sergeych.utils.Base64u
test driver.
map - Variable in class net.sergeych.collections.Multimap
 
map(Object...) - Static method in class net.sergeych.tools.Do
Convert "key, value" pairs from varargs into a Map.
MapDelta<T,V,U> - Class in net.sergeych.diff
Map difference calculation.
mapFromArray(Object...) - Static method in class net.sergeych.utils.Ut
Convert "key, value" pairs from varargs into a Map.
mapper - Variable in class net.sergeych.biserializer.BiSerializer
 
MapSerializer - Class in net.sergeych.map_serializer
Serializes and deserializes any class to Map.
MapSerializer() - Constructor for class net.sergeych.map_serializer.MapSerializer
 
MapSerializer.CantProcessException - Exception in net.sergeych.map_serializer
General error while serializing or deserializing
mapToString(Map<K, V>) - Static method in class net.sergeych.utils.Ut
Convert map to {key: value,...} string
measure(Do.Action) - Static method in class net.sergeych.tools.StopWatch
 
measure(boolean, Do.Action) - Static method in class net.sergeych.tools.StopWatch
 
message - Variable in class net.sergeych.tools.BufferedLogger.Entry
 
message(String) - Method in class net.sergeych.tools.Reporter
message will be shown immediately or buffered and returned later in json mode.
moveFileWithRenaming(String, String) - Static method in class net.sergeych.tools.FileTool
Gets contents of one file and calls {FileTool.writeFileContentsWithRenaming(String, byte[])} to write it on new filepath.
Multimap<K,V> - Class in net.sergeych.collections
Multimap (AKA bag) associates any number of elements with a key.
Multimap() - Constructor for class net.sergeych.collections.Multimap
 
Multimap(Class<? extends Map>, Class<? extends Collection<V>>) - Constructor for class net.sergeych.collections.Multimap
 

N

net.sergeych.biserializer - package net.sergeych.biserializer
 
net.sergeych.boss - package net.sergeych.boss
Boss protocol: multiplatform binary, bit-effective typed serialization (BinaryObject Notation).
net.sergeych.collections - package net.sergeych.collections
 
net.sergeych.diff - package net.sergeych.diff
 
net.sergeych.farcall - package net.sergeych.farcall
 
net.sergeych.informer - package net.sergeych.informer
 
net.sergeych.map_serializer - package net.sergeych.map_serializer
 
net.sergeych.recordsfile - package net.sergeych.recordsfile
 
net.sergeych.tools - package net.sergeych.tools
 
net.sergeych.utils - package net.sergeych.utils
 
newDeserializer() - Method in class net.sergeych.biserializer.BiMapper
Construct new deserializer to use this mapper
newDeserializer() - Static method in class net.sergeych.biserializer.BossBiMapper
Create new deserializer based on default Boss - optimized BiMapper.
newInstance() - Static method in class net.sergeych.collections.Multimap
 
newLine() - Method in class net.sergeych.tools.Reporter
Outputs newline on the console only (does nothing in quiet more).
newSerializer() - Method in class net.sergeych.biserializer.BiMapper
Construct new serializer to use this mapper
newSerializer() - Static method in class net.sergeych.biserializer.BossBiMapper
Create new serializer based on default Boss - optimized BiMapper.
newValue() - Method in class net.sergeych.diff.Delta
 
notice(String) - Method in class net.sergeych.tools.Reporter
Message to show in the console mode (non json mode).

O

of(String) - Method in class net.sergeych.tools.Binder
Deprecated.
of(String, Object, Object...) - Static method in class net.sergeych.tools.Binder
Just like in Java 9, create a binder of keys and values, but, IMPOTANT, returned Binder is not immutable! Freeze it if need.
of(Object) - Static method in class net.sergeych.tools.Binder
Convert some map to the binder.
oldValue() - Method in class net.sergeych.diff.Delta
 
onCommand(Command) - Method in interface net.sergeych.farcall.Farcall.Target
 
onSubscriberException(Informer.ExceptionContext) - Method in interface net.sergeych.informer.Informer.ExceptionListener
 
out - Variable in class net.sergeych.farcall.BasicConnector
 
outputLog(String, String) - Method in class net.sergeych.utils.LogPrinter
 

P

pack(Object) - Static method in class net.sergeych.boss.Boss
 
pack(Binder) - Method in class net.sergeych.recordsfile.StructureDescriptor
Pack structure into binary data with given values
pack(Binder, boolean) - Method in class net.sergeych.recordsfile.StructureDescriptor
Pack structure using given values, optionally ignore keys that are not included in the structure.
packTo(byte[], int, Binder, boolean) - Method in class net.sergeych.recordsfile.StructureDescriptor
Pack structure with given data into existing binary array from a specified offset
PAD - Static variable in class net.sergeych.utils.Base64
Marker for = trailing pad.
padToSize(int, int) - Method in class net.sergeych.utils.Bytes
Return new Bytes instance padded to the required size.
paramsSize() - Method in class net.sergeych.farcall.Command
 
part(int) - Method in class net.sergeych.utils.Bytes
Extract part of the data from ith index (inclusive) to the end.
part(int, int) - Method in class net.sergeych.utils.Bytes
Extract a part of bytes into new instance.
pause(long) - Method in class net.sergeych.farcall.Interconnection.QueueConnector
 
perform() - Method in interface net.sergeych.biserializer.BiDeserializer.ContextBlock
 
perform() - Method in interface net.sergeych.tools.Do.Action
 
perform() - Method in interface net.sergeych.tools.Do.Task
 
perform() - Method in interface net.sergeych.tools.Do.TaskWithoutResult
 
PooledDb - Class in com.icodici.db
 
PooledDb(DbPool, String, Properties) - Constructor for class com.icodici.db.PooledDb
 
post(Object) - Method in class net.sergeych.informer.Informer
Synchronously post an event.
postAfter(Object, long) - Method in class net.sergeych.informer.Informer
Post an event to subscribers after the specified timeout, see Informer.post(Object) for details.
printTo(PrintStream, boolean) - Method in class net.sergeych.tools.BufferedLogger
Copy results to a given PrintStream (to be used with System.out, for example)
progress(String) - Method in class net.sergeych.tools.Reporter
 
properties - Variable in class com.icodici.db.Db
 
put(K, V) - Method in class net.sergeych.collections.Multimap
 
put(int) - Method in class net.sergeych.tools.ByteRingBuffer
put single byte.
put(byte[]) - Method in class net.sergeych.tools.ByteRingBuffer
Put all the bytes to the buffer.
put(Iterable<T>) - Method in class net.sergeych.tools.ByteRingBuffer
Put all the bytes to the buffer.
put(String) - Method in class net.sergeych.tools.ByteRingBuffer
Put string in UTF-8 encoding into the buffer blocking until there is enough space.
put(Object) - Method in class net.sergeych.tools.RingBuffer
put object, block until there is space available.
put(Iterable<T>) - Method in class net.sergeych.tools.RingBuffer
Put all the bytes to the buffer.
putAll(String, Object, Object...) - Method in class net.sergeych.tools.Binder
Put several keys and values from array varargs.

Q

queryOne(String, Object...) - Method in class com.icodici.db.Db
Execute sqlText using cached prepared statement and args and return its first row first column if any, nd casts it to desired type.
queryRow(String, Object...) - Method in class com.icodici.db.Db
 
QueueConnector(BlockingQueue<Object>, BlockingQueue<Object>) - Constructor for class net.sergeych.farcall.Interconnection.QueueConnector
 

R

random(int) - Static method in class net.sergeych.utils.Bytes
Create random bytes using SecureRandom RNG in SHA1PRNG mode.
randomBytes(int) - Static method in class net.sergeych.tools.Do
Get a sequence of random bytes using SecureRandom.
randomInt(int) - Static method in class net.sergeych.tools.Do
get the next integer in [0,max[ (max exclusive, zero inclusive) range using SecureRandom generator
randomIntInRange(int, int) - Static method in class net.sergeych.tools.Do
 
randomNegativeBytes(int) - Static method in class net.sergeych.tools.Do
Get a sequence of random negative bytes using SecureRandom, useful to test errors
randomString(int) - Static method in class net.sergeych.utils.Ut
Create strong enough pseudo-random alphanumeric String id.
randomString(int, String) - Static method in class net.sergeych.utils.Ut
Create strong enough pseudo-random alphanumeric String id.
read() - Method in class net.sergeych.boss.Boss.Reader
Read next object from the stream
read() - Method in class net.sergeych.tools.ByteRingBuffer
Nonblocking get the next byte.
read(byte[]) - Method in class net.sergeych.tools.ByteRingBuffer
Nonblocking read.
read(String) - Static method in class net.sergeych.tools.Do
 
read(InputStream) - Static method in class net.sergeych.tools.Do
 
read(File) - Static method in class net.sergeych.tools.Do
 
read() - Method in class net.sergeych.tools.RingBuffer
Nonblocking get the next object
readAll() - Method in class net.sergeych.tools.ByteRingBuffer
Get all data available from the buffer
readAll() - Method in class net.sergeych.tools.RingBuffer
Get all data available from the buffer
readArray() - Method in class net.sergeych.boss.Boss.Reader
 
readBigInteger() - Method in class net.sergeych.boss.Boss.Reader
read object and cast it to BigInteger
readBinary() - Method in class net.sergeych.boss.Boss.Reader
Convert next object ot byte[] (unless null that is null).
readBytes() - Method in class net.sergeych.boss.Boss.Reader
Read object and cast it to Bytes
Reader(byte[]) - Constructor for class net.sergeych.boss.Boss.Reader
 
Reader(InputStream, BiDeserializer) - Constructor for class net.sergeych.boss.Boss.Reader
 
Reader(InputStream) - Constructor for class net.sergeych.boss.Boss.Reader
 
readFully(InputStream) - Static method in class net.sergeych.utils.Ut
Java6 compatible way to read the whole stream into a bytes array
readFully(InputStream, byte[]) - Static method in class net.sergeych.utils.Ut
Read inputStream to fill completely the buffer.
readInt() - Method in class net.sergeych.boss.Boss.Reader
 
readLong() - Method in class net.sergeych.boss.Boss.Reader
 
readMap() - Method in class net.sergeych.boss.Boss.Reader
 
readToString(InputStream) - Static method in class net.sergeych.tools.Do
 
readToString(InputStream) - Static method in class net.sergeych.utils.Ut
Read whole stream into the String using UTF-8 encoding.
recalculateMapper() - Static method in class net.sergeych.biserializer.BossBiMapper
 
receive() - Method in class net.sergeych.farcall.BossConnector
 
receive() - Method in interface net.sergeych.farcall.Connector
Block until the connection is closed or a valid package is received.
receive() - Method in class net.sergeych.farcall.Interconnection.QueueConnector
 
receive() - Method in class net.sergeych.farcall.JsonConnector
 
register(Object, boolean) - Method in class net.sergeych.informer.Informer
Register a subscriber object as a strong or a weak reference.
registerAdapter(Class<T>, BiAdapter) - Method in class net.sergeych.biserializer.BiMapper
 
registerAdapter(Class<?>, BiAdapter) - Static method in class net.sergeych.biserializer.BossBiMapper
Register serialization adapter in the default Boss mapper only.
registerAdapter(Class<T>, BiAdapter) - Static method in class net.sergeych.biserializer.DefaultBiMapper
 
registerClass(Class<? extends BiSerializable>) - Method in class net.sergeych.biserializer.BiMapper
Add a class to serializable with this mapper.
registerClass(Class<? extends BiSerializable>) - Static method in class net.sergeych.biserializer.BossBiMapper
Register serializabble class in the default Boss mapper only.
registerClass(Class<? extends BiSerializable>) - Static method in class net.sergeych.biserializer.DefaultBiMapper
Register a class with explicit de/serialization methods.
registerInParent() - Method in class net.sergeych.diff.Delta
Subclasses must call it after the difference item is completely constructed and Delta.isEmpty() return valid result.
registerPackage(String) - Method in class net.sergeych.map_serializer.MapSerializer
Register all class aliases for a given package.
registerStrong(Object) - Method in class net.sergeych.informer.Informer
Register subscriber as a strong reference, and it will be retained at least as long as it is registered and the Informer instance is not collected.
registerWeak(Object) - Method in class net.sergeych.informer.Informer
Register a subscriber object as a weak reference.
RemoteException(String, String) - Constructor for exception net.sergeych.farcall.Farcall.RemoteException
 
remove(K) - Method in class net.sergeych.collections.Multimap
Remove all elements, if any existed, associated with a key.
remove(T) - Method in class net.sergeych.diff.MapDelta
 
RemovedItem<T,U> - Class in net.sergeych.diff
Item is removed from some collection
RemovedItem(Delta, T) - Constructor for class net.sergeych.diff.RemovedItem
 
removeValue(K, V) - Method in class net.sergeych.collections.Multimap
Remove a value it it was associated with a specified key
report() - Method in class net.sergeych.tools.Reporter
Get collected report as a Binder object.
Reporter - Class in net.sergeych.tools
Tool to report messages, errors, progress notifications the same way in console applications, GUI applications and services.
Reporter() - Constructor for class net.sergeych.tools.Reporter
 
reportJson() - Method in class net.sergeych.tools.Reporter
Get collected report as JSON string
restart() - Method in class net.sergeych.tools.RunnableWithDynamicPeriod
 
reverse() - Method in class net.sergeych.utils.Bytes
Create a copy with this data in reverse order
RingBuffer<T> - Class in net.sergeych.tools
Created by sergeych on 14.04.16.
RingBuffer(int) - Constructor for class net.sergeych.tools.RingBuffer
 
RollbackException() - Constructor for exception com.icodici.db.Db.RollbackException
 
run() - Method in class net.sergeych.tools.RunnableWithDynamicPeriod
 
RunnableWithDynamicPeriod - Class in net.sergeych.tools
 
RunnableWithDynamicPeriod(Runnable, List<Integer>, ScheduledExecutorService) - Constructor for class net.sergeych.tools.RunnableWithDynamicPeriod
 

S

Safe58 - Class in net.sergeych.utils
 
Safe58() - Constructor for class net.sergeych.utils.Safe58
 
same(Object, Object) - Static method in class net.sergeych.utils.Ut
Null-aware equality that supports nulls.
sample(Collection) - Static method in class net.sergeych.tools.Do
Get a random item of the collection.
sd_journal_perror(String) - Method in interface net.sergeych.tools.SystemdJournal
 
sd_journal_print(int, String, Object...) - Method in interface net.sergeych.tools.SystemdJournal
 
sd_journal_send(String, Object...) - Method in interface net.sergeych.tools.SystemdJournal
 
send(Map<String, Object>) - Method in class net.sergeych.farcall.BossConnector
 
send(Map<String, Object>) - Method in interface net.sergeych.farcall.Connector
Pack and send farcall data
send(String) - Method in class net.sergeych.farcall.Farcall
Send command without parameters
send(String, ArrayList<Object>, HashMap<String, Object>) - Method in class net.sergeych.farcall.Farcall
Send remote command with all kind of parameters
send(Map<String, Object>) - Method in class net.sergeych.farcall.Interconnection.QueueConnector
 
send(Map<String, Object>) - Method in class net.sergeych.farcall.JsonConnector
 
sendFailure(Object) - Method in class net.sergeych.tools.DeferredResult
Trigger the failure event and pass argument to all DeferredResult.failure(Handler) and to DeferredResult.done(Handler) callbacks.
sendKeyParams(String, Object...) - Method in class net.sergeych.farcall.Farcall
Send remote command with only keyed parameters.
sendParams(String, Object...) - Method in class net.sergeych.farcall.Farcall
Send Farcall command to the remote with only array parameters.
sendSuccess(Object) - Method in class net.sergeych.tools.DeferredResult
Trigger the success event and pass argument to all DeferredResult.success(Handler) and then DeferredResult.done(Handler) callbacks.
serialize(T, BiSerializer) - Method in interface net.sergeych.biserializer.BiAdapter
Serialize into binder.
serialize(Object, BiSerializer) - Method in class net.sergeych.biserializer.BiMapper
Try to serialize object to Binder using current set of BiAdapter.
serialize(Object) - Method in class net.sergeych.biserializer.BiMapper
serialize(BiSerializer) - Method in interface net.sergeych.biserializer.BiSerializable
Construct a Binder holding all necessary information to reconstruct state with BiSerializable.deserialize(Binder, BiDeserializer).
serialize(Object) - Method in class net.sergeych.biserializer.BiSerializer
Serialize any object.
serialize(Object) - Static method in class net.sergeych.biserializer.BossBiMapper
Try to serialize object to Binder using current set of BiAdapter.
serialize(Object) - Static method in class net.sergeych.biserializer.DefaultBiMapper
Try to serialize object to Binder using current set of BiAdapter.
serializeOrThrow(Object) - Method in class net.sergeych.biserializer.BiSerializer
Try do serialize some object.
SerialName - Annotation Type in net.sergeych.map_serializer
Annotation that allows specify alias name for class and/or for field, see MapSerializer.
set(String, T) - Method in class net.sergeych.tools.Binder
Add Binder as a field with the specified index and return it in a typed manner.
setAutoClosing(boolean) - Method in class net.sergeych.farcall.BasicConnector
Set the autoclosing mode, which closes connected streams when endpoint sends BasicConnector.close().
setBase(String) - Method in class net.sergeych.tools.FilenameTool
 
setExtension(String) - Method in class net.sergeych.tools.FilenameTool
 
setInstance(Map<String, Object>, T) - Method in class net.sergeych.map_serializer.MapSerializer
Set object's fields from the map.
setIntParam(String, int) - Method in class com.icodici.db.Db
 
setLineLength(int) - Method in class net.sergeych.utils.Base64
determines how long the lines are that are generated by encode.
setLineSeparator(String) - Method in class net.sergeych.utils.Base64
How lines are separated.
setPath(String) - Method in class net.sergeych.tools.FilenameTool
 
setQuiet(boolean) - Method in class net.sergeych.tools.Reporter
Set quiet mode: all information is only collected.
setStreamMode() - Method in class net.sergeych.boss.Boss.Writer
Turn encoder to stream mode (e.g.
setStringParam(String, String) - Method in class com.icodici.db.Db
 
setTrace(boolean) - Method in class net.sergeych.boss.Boss.Reader
 
setupDatabase(String) - Method in class com.icodici.db.Db
 
setUseOldDates(boolean) - Static method in class net.sergeych.boss.Boss
Set to true to use Date class instead of ZonedDateTime (default)
setVerboseMode(boolean) - Method in class net.sergeych.tools.Reporter
 
sha1() - Method in class net.sergeych.utils.Bytes
 
sha256(Object...) - Method in class net.sergeych.utils.Bytes
Calculate SHA256 hash for this instance optionally with any number of additional chinks.
show(byte[]) - Static method in class net.sergeych.utils.Base64
debug display array as hex.
showDebug(boolean) - Static method in class net.sergeych.utils.LogPrinter
 
showTrace - Variable in class net.sergeych.boss.Boss.Reader
 
size() - Method in class net.sergeych.collections.Multimap
 
size() - Method in class net.sergeych.utils.Bytes
 
slice(long, int) - Method in class net.sergeych.tools.BufferedLogger
Get slice of entries based on the id.
smallestNumber(boolean) - Method in class net.sergeych.boss.Boss.Header
 
snakeToCamelCase(String) - Static method in class net.sergeych.map_serializer.MapSerializer
Convert snake_case to camelCase
snakeToCamelCase(String) - Static method in class net.sergeych.tools.Do
Convert a snake_case_string to CamelCaseString.
spec1 - Variable in class net.sergeych.utils.Base64
special character 1, will be - in Base64u.
spec2 - Variable in class net.sergeych.utils.Base64
special character 2, will be in in Base64u.
spec3 - Variable in class net.sergeych.utils.Base64
special character 3, will be * in Base64u.
start(Farcall.Target) - Method in class net.sergeych.farcall.Farcall
Start a worker thread that reads connector data, and executes recevied commamds using specified interface.
start() - Method in class net.sergeych.farcall.Farcall
Start the protocol in one-way mode: this instance only issues commands.
start() - Method in class net.sergeych.tools.StopWatch
 
statement(String, Object...) - Method in class com.icodici.db.Db
 
statementReturningKeys(String, Object...) - Method in class com.icodici.db.Db
 
StaticLog - Class in net.sergeych.utils
Created by sergeych on 20.03.16.
StaticLog() - Constructor for class net.sergeych.utils.StaticLog
 
stdev() - Method in class net.sergeych.tools.Average
 
stdev2() - Method in class net.sergeych.tools.Average
 
stop() - Method in class net.sergeych.tools.StopWatch
 
stopInterceptingStdOut() - Method in class net.sergeych.tools.BufferedLogger
 
StopWatch - Class in net.sergeych.tools
 
StopWatch() - Constructor for class net.sergeych.tools.StopWatch
 
StreamConnector - Class in net.sergeych.tools
Privides pair or connected streams.
StreamConnector() - Constructor for class net.sergeych.tools.StreamConnector
 
StreamConnector(int) - Constructor for class net.sergeych.tools.StreamConnector
 
stringList(Object...) - Static method in class net.sergeych.utils.Ut
Shortcut: return varargs as list
StructureDescriptor - Class in net.sergeych.recordsfile
Byte structures packer/unpacker.
StructureDescriptor() - Constructor for class net.sergeych.recordsfile.StructureDescriptor
 
Subscriber - Annotation Type in net.sergeych.informer
Annotation for methods to receive events with the Informer.
success(DeferredResult.Handler) - Method in class net.sergeych.tools.DeferredResult
Adds the success callback.
SystemdJournal - Interface in net.sergeych.tools
Binding to the native journald library.
SystemdJournalWriter - Class in net.sergeych.tools
 
SystemdJournalWriter() - Constructor for class net.sergeych.tools.SystemdJournalWriter
 

T

toArray() - Method in class net.sergeych.utils.Bytes
return underlying bytes.
toBase64() - Method in class net.sergeych.utils.Bytes
 
toBase64Lines() - Method in class net.sergeych.utils.Bytes
 
toBigInteger() - Method in class net.sergeych.utils.Bytes
Convert to a BigInteger value.
toBinder() - Method in interface net.sergeych.biserializer.BiSerializable
 
toBinder() - Method in interface net.sergeych.tools.Bindable
 
toBinder() - Method in class net.sergeych.tools.BufferedLogger.Entry
 
toByteArray() - Method in class net.sergeych.boss.Boss.Writer
Return packed bytes.
toDouble() - Method in class net.sergeych.utils.Bytes
 
toDump(byte[]) - Static method in class net.sergeych.utils.Bytes
Generate dump string with address, hex bytes and ASCII character areas, line endings are "\n"s.
toDump() - Method in class net.sergeych.utils.Bytes
 
toHash() - Method in interface net.sergeych.tools.Hashable
 
toHex() - Method in class net.sergeych.utils.Bytes
 
toHex(boolean) - Method in class net.sergeych.utils.Bytes
 
toHex(byte[]) - Static method in class net.sergeych.utils.Bytes
 
toInputStream() - Method in class net.sergeych.utils.Bytes
Get an input stream to read contents of this buffer
toJson(Object) - Static method in class net.sergeych.tools.JsonTool
Deep convert any suitable Java object to corresponding JsonValue derivative.
toJsonString(Object) - Static method in class net.sergeych.tools.JsonTool
Deep convert to JSON and return it's string representation.
toMap(Object, boolean) - Method in class net.sergeych.map_serializer.MapSerializer
Serialize some object to Map, using aliases if any.
toString() - Method in class net.sergeych.boss.Boss.Header
 
toString() - Method in exception net.sergeych.farcall.Farcall.RemoteException
 
toString() - Method in class net.sergeych.tools.Average
 
toString() - Method in class net.sergeych.tools.BufferedLogger.Entry
 
toString() - Method in class net.sergeych.tools.FilenameTool
 
toString() - Method in class net.sergeych.utils.Bytes
 
trace(String) - Method in class net.sergeych.boss.Boss.Reader
 
trace(byte[]) - Static method in class net.sergeych.boss.Boss
 
trace(Object) - Static method in class net.sergeych.boss.Boss
 
trace(boolean) - Method in class net.sergeych.farcall.Interconnection.QueueConnector
 
traceObject() - Method in class net.sergeych.boss.Boss.Reader
 
transaction(Callable<T>) - Method in class com.icodici.db.Db
 
transaction(Callable<T>) - Method in class com.icodici.db.PooledDb
 
treeMode - Variable in class net.sergeych.boss.Boss.Reader
 
trimWithEllipsis(String, int) - Static method in class net.sergeych.utils.Ut
 
typeName() - Method in interface net.sergeych.biserializer.BiAdapter
 

U

unmodifiableCopy() - Method in class net.sergeych.tools.Binder
 
unpack(byte[]) - Static method in class net.sergeych.boss.Boss
Load boss-encoded object and cast ti to Binder.
unpack(byte[]) - Method in class net.sergeych.recordsfile.StructureDescriptor
unpack packed binary data
unpack(byte[], int) - Method in class net.sergeych.recordsfile.StructureDescriptor
Unpack packed binary data staring from a given offset
unregister(Class) - Method in class net.sergeych.biserializer.BiMapper
unregister class.
unregister(Object) - Method in class net.sergeych.informer.Informer
Unregister subscriber.
update(String, Object...) - Method in class com.icodici.db.Db
Perform sql update on created/cached prepared statement
update(double) - Method in class net.sergeych.tools.Average
add sample value
updateFrom(Binder) - Method in interface net.sergeych.tools.Bindable
 
updateFromHash(Map<String, Object>) - Method in interface net.sergeych.tools.Hashable
Load object state from the hash
updateWithStatement(PreparedStatement) - Method in class com.icodici.db.Db
 
Ut - Class in net.sergeych.utils
 
Ut() - Constructor for class net.sergeych.utils.Ut
 
utf8 - Static variable in class net.sergeych.utils.Ut
 

V

value - Variable in class net.sergeych.boss.Boss.Header
 
values() - Method in class net.sergeych.collections.Multimap
Return all elements associated with all keys.
valueToChar - Variable in class net.sergeych.utils.Base64
letter of the alphabet used to encode binary values 0..63, overridden in Base64u.
variation() - Method in class net.sergeych.tools.Average
 
vc - Static variable in class net.sergeych.utils.Base64
letter of the alphabet used to encode binary values 0..63
verbose(String) - Method in class net.sergeych.tools.Reporter
 

W

w(String, Object...) - Method in class net.sergeych.utils.LogPrinter
 
waitFired() - Method in class net.sergeych.tools.AsyncEvent
Deprecated.
waitSuccess() - Method in class net.sergeych.tools.DeferredResult
waits until the operation is finished and return it's result on success, or throws an error on failure.
warning(String) - Method in class net.sergeych.tools.Reporter
 
withContext(T, BiDeserializer.ContextBlock<E>) - Method in class net.sergeych.biserializer.BiDeserializer
Set the deserilaziation context and executes the BiDeserializer.ContextBlock.perform().
write(Object...) - Method in class net.sergeych.boss.Boss.Writer
Serialize one or more objects.
write(OutputStream) - Method in class net.sergeych.utils.Bytes
 
writeException(Throwable) - Static method in class net.sergeych.tools.SystemdJournalWriter
 
writeFileContentsWithRenaming(String, byte[]) - Static method in class net.sergeych.tools.FileTool
Wtires byte[] contents to specified file.
writeObject(Object) - Method in class net.sergeych.boss.Boss.Writer
Serialize single object known to boss (e.g.
Writer(OutputStream, BiSerializer) - Constructor for class net.sergeych.boss.Boss.Writer
Creates writer to write to the output stream.
Writer(OutputStream) - Constructor for class net.sergeych.boss.Boss.Writer
Creates writer to write to the output stream.
Writer() - Constructor for class net.sergeych.boss.Boss.Writer
 
wtf(String, Throwable) - Method in class net.sergeych.utils.LogPrinter
Respect to android guys.
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links