- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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(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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- serialize(T, BiSerializer) - Method in interface net.sergeych.biserializer.BiAdapter
-
Serialize into binder.
- serialize(Object, BiSerializer) - Method in class net.sergeych.biserializer.BiMapper
-
- serialize(Object) - Method in class net.sergeych.biserializer.BiMapper
-
- serialize(BiSerializer) - Method in interface net.sergeych.biserializer.BiSerializable
-
- serialize(Object) - Method in class net.sergeych.biserializer.BiSerializer
-
Serialize any object.
- serialize(Object) - Static method in class net.sergeych.biserializer.BossBiMapper
-
- serialize(Object) - Static method in class net.sergeych.biserializer.DefaultBiMapper
-
- 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
-
- 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
-