- close() - Method in class pl.jalokim.utils.file.FileCursor
-
- close() - Method in class pl.jalokim.utils.file.FileWriter
-
- CollectionUtils - Class in pl.jalokim.utils.collection
-
Some utils methods for collections.
- CollectionUtilsException - Exception in pl.jalokim.utils.collection
-
Exception which can be thrown from pl.jalokim.utils.collection API.
- CollectionUtilsException(String) - Constructor for exception pl.jalokim.utils.collection.CollectionUtilsException
-
- COMMA - Static variable in class pl.jalokim.utils.constants.Constants
-
- concat(String...) - Static method in class pl.jalokim.utils.string.StringUtils
-
concatenate all elements with empty string value.
- concatElements(Collection<E>) - Static method in class pl.jalokim.utils.string.StringUtils
-
Concatenate elements with empty text.
- concatElements(Collection<E>, Function<E, String>) - Static method in class pl.jalokim.utils.string.StringUtils
-
Concatenate elements with empty text with mapper from E type to String.
- concatElements(Collection<E>, String) - Static method in class pl.jalokim.utils.string.StringUtils
-
Concatenate elements with joinText value.
- concatElements(Collection<E>, Function<E, String>, String) - Static method in class pl.jalokim.utils.string.StringUtils
-
Concatenate elements with joinText value with mapper from E type to String.
- concatElements(String, Collection<E>, Function<E, String>, String, String) - Static method in class pl.jalokim.utils.string.StringUtils
-
Concatenate elements with prefix, join text between all elements and with suffix value with mapper from E type to String.
- concatElements(String, Collection<E>, String, String) - Static method in class pl.jalokim.utils.string.StringUtils
-
Concatenate elements with prefix, join text between all elements and with suffix value with mapper from E type to String.
- concatElements(String, String...) - Static method in class pl.jalokim.utils.string.StringUtils
-
This method concatenate all texts from array with join Text.
- concatElementsAsLines(List<E>) - Static method in class pl.jalokim.utils.string.StringUtils
-
Return concatenated text all list elements as new lines.
- concatElementsAsLines(Object...) - Static method in class pl.jalokim.utils.string.StringUtils
-
Return concatenated text all array elements as new lines.
- concatElementsAsLines(Function<E, String>, E...) - Static method in class pl.jalokim.utils.string.StringUtils
-
Return concatenated text from mapped all array elements to text as new lines.
- concatElementsAsLines(List<E>, Function<E, String>) - Static method in class pl.jalokim.utils.string.StringUtils
-
Return concatenated text all list elements as new lines.
- concatObjects(Object...) - Static method in class pl.jalokim.utils.string.StringUtils
-
concatenate all object with empty string value.
- Constants - Class in pl.jalokim.utils.constants
-
Some useful constants.
- consume(int) - Method in interface pl.jalokim.utils.iteration.ExceptionableConsumer
-
- consumeEveryLineFromFile(String, Consumer<String>) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read all lines line by line and put line value to consumerLine argument.
- consumeEveryLineFromFile(String, Consumer<String>, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read all lines line by line and put line value to consumerLine argument.
- consumeEveryLineWitNumberFromFile(String, BiConsumer<Long, String>) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read all lines line by line and put line value to consumerLine argument.
- consumeEveryLineWitNumberFromFile(String, BiConsumer<Long, String>, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read all lines line by line and put line value to consumerLine argument.
- countSearchedChar(String, char) - Static method in class pl.jalokim.utils.string.StringUtils
-
It returns number of searched char in provided text.
- createDirectories(String) - Static method in class pl.jalokim.utils.file.FileUtils
-
It creates directories recursively, all path part will be a folder type.
- createDirectoriesForFile(String) - Static method in class pl.jalokim.utils.file.FileUtils
-
It creates directories recursively, leaf of provided path is expected as file name.
- FileCursor - Class in pl.jalokim.utils.file
-
This class is useful for read next line, can check that file contains next line.
- FileCursor(String) - Constructor for class pl.jalokim.utils.file.FileCursor
-
Create instance of FileCursor.
- FileCursor(String, Charset) - Constructor for class pl.jalokim.utils.file.FileCursor
-
Create instance of FileCursor.
- FileException - Exception in pl.jalokim.utils.file
-
Wrapper class for IOException types.
- FileException(IOException) - Constructor for exception pl.jalokim.utils.file.FileException
-
- FileException(String) - Constructor for exception pl.jalokim.utils.file.FileException
-
- FileUtils - Class in pl.jalokim.utils.file
-
Useful class for Files.
- FileWriter - Class in pl.jalokim.utils.file
-
Simply class for writing text to file, line by line and with append to file.
- FileWriter(String) - Constructor for class pl.jalokim.utils.file.FileWriter
-
- filter(Predicate<T>) - Method in class pl.jalokim.utils.collection.Elements
-
- filterToList(Collection<T>, Predicate<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
This method get some collection and filter expected elements and put them to new List.
- filterToList(Collection<T>, Predicate<T>, Function<T, R>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
This method get some collection and filter expected elements and map them to new type and put results to new List.
- filterToList(Predicate<T>, T...) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
This method get some collection and filter expected elements and put them to new List.
- filterToList(Predicate<T>, Function<T, R>, T...) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
This method get some array and filter expected elements and map them to new type and put results to new List.
- filterToSet(Collection<T>, Predicate<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
This method get some collection and filter expected elements and put them to new set.
- filterToSet(Collection<T>, Predicate<T>, Function<T, R>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
This method get some collection and filter expected elements and map them to new type and put results to new Set.
- flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in class pl.jalokim.utils.collection.Elements
-
- flush() - Method in class pl.jalokim.utils.file.FileWriter
-
- forEach(BiConsumer<Integer, T>) - Method in class pl.jalokim.utils.collection.Elements
-
For each with index and element.
- forEach(Consumer<IndexedElement<T>>) - Method in class pl.jalokim.utils.collection.Elements
-
For each with index and element and useful method isFirst, isLast.
- fromClassPath(String) - Static method in class pl.jalokim.utils.template.TemplateAsText
-
Load text with placeholders from classpath.
- fromClassPath(String, boolean) - Static method in class pl.jalokim.utils.template.TemplateAsText
-
Load text with placeholders from classpath and set flag for throwExceptionForNotResolved.
- fromFile(String) - Static method in class pl.jalokim.utils.template.TemplateAsText
-
Load text with placeholders from file from certain file path.
- fromFile(String, boolean) - Static method in class pl.jalokim.utils.template.TemplateAsText
-
Load text with placeholders from file from certain file path and set flag for throwExceptionForNotResolved.
- fromText(String) - Static method in class pl.jalokim.utils.template.TemplateAsText
-
Load text with placeholders from simple String object.
- fromText(String, boolean) - Static method in class pl.jalokim.utils.template.TemplateAsText
-
* Load text with placeholders from simple String object and set flag for throwExceptionForNotResolved.
- generateProbabilityArray(int) - Method in class pl.jalokim.utils.random.RandomUtilImpl
-
- getAllChildClassesForClass(Class<T>, String, boolean) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It will search for all classes which inherit from provided super type.
- getByGenericLabel(String) - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
It returns metadata for raw generic label for current class, it not search in parents classes.
- getCanonicalName() - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
It returns canonical class name for current raw type.
- getClassForName(String) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns raw class, under the hood is used apache lang3.
- getCurrentLine() - Method in class pl.jalokim.utils.file.FileCursor
-
- getCurrentTemplateText() - Method in class pl.jalokim.utils.template.TemplateAsText
-
Returns value for already resolved placeholders.
- getField(Object, String) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
Returns lang.reflect.Field for given target object and fieldName.
- getField(Class<?>, String) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
Returns lang.reflect.Field for given target class and fieldName.
- getFirst(List<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It returns first element from list if present.
- getFirst() - Method in class pl.jalokim.utils.collection.Elements
-
- getGenericType(int) - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
It returns metadata for generic type under provided index.
- getLast(List<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It returns last element from list if present.
- getLast() - Method in class pl.jalokim.utils.collection.Elements
-
- getLastIndex(Collection<?>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It returns last index from list.
- getLastIndex(Object...) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It returns last index from array.
- getLineNumber() - Method in class pl.jalokim.utils.file.FileCursor
-
First line number will be equals 1.
- getMetaForField(String) - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
It returns metadata for field stored in current raw class
It searches for field in whole raw class hierarchy.
- getMethod(Object, String, Class<?>...) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns method for given target object.
- getMethod(Class<?>, String, Class<?>...) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns method for given target object.
- getParametrizedRawTypes(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns some parametrized types for given class.
- getParametrizedType(Field, int) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns a type of generic field by given index.
- getParametrizedType(Object, int) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
Deprecated.
- getParametrizedType(Class<?>, int) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
Deprecated.
- getTypeMetadataForField(Class<?>, String) - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
It returns resolved metadata for some raw generic type when exists one.
- getTypeMetadataFromClass(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It builds metadata for provided class.
- getTypeMetadataFromField(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It build metadata from provided field but field needs to have all generic types as real classes.
- getTypeMetadataFromField(Field, int) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns generic type from certain field by index.
- getTypeMetadataFromType(Type) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It build metadata from simple type.
- getTypeMetadataOfArray(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It returns metadata of type stored in field which is array type.
- getTypeOfArrayField(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
Return type of field which is expected to be array field.
- getValueForStaticField(Class, String) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
It gets value for static field by name from target class.
- getValueOfField(Object, String) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
It gets value for given field name from target object.
- getValueOfField(Object, Class, String) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
It gets value for given field name from target object.
- IndexedElement<T> - Class in pl.jalokim.utils.collection
-
Class which wraps element at certain index, over iterate you can check that this first or last element.
- IndexedElement() - Constructor for class pl.jalokim.utils.collection.IndexedElement
-
- intersection(Collection<E>, Collection<E>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It return intersection for two given collections.
- InvokableReflectionUtils - Class in pl.jalokim.utils.reflection
-
Set of utils methods for set value, get value for field, invoke methods etc by reflection.
- invoke() - Method in interface pl.jalokim.utils.iteration.ExceptionableRunnable
-
- invokeMethod(Object, String, List<Class<?>>, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
Invokes first match method in hierarchy of target object which has arguments with explicitly provided
types, and invoke method with list of arguments.
- invokeMethod(Object, String, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
Invokes first match method in hierarchy of target object which has arguments with expected
types, and invokes method with list of arguments.
- invokeMethod(Object, String, Object...) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
Invoke first match method in hierarchy of target object which has arguments with expected
types, and invokes method with array of arguments.
- invokeMethod(Object, Class<?>, String, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
Invoke first match method in hierarchy starting from target class, it invoke on target object which has arguments with expected
types, and invokes method with list of arguments.
- invokeMethod(Object, Class<?>, String, Object...) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
Invoke first match method in hierarchy starting from target class, it invoke on target object which has arguments with expected
types, and invokes method with list of arguments.
- invokeMethod(Object, Class<?>, String, List<Class<?>>, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
Invokes first match method in hierarchy starting from target class, it invoke on target object which has arguments with explicitly provided
types, and invoke method with list of arguments.
- invokeStaticMethod(Class<?>, String, List<Class<?>>, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
It will search for first match static method, it will start searching from target class.
- invokeStaticMethod(Class<?>, String, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
It will search for first match static method, it will start searching from target class.
- invokeStaticMethod(Class<?>, String, Object...) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
-
It will search for first match static method, it will start searching from target class.
- isArrayType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is array type.
- isArrayType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is array type.
- isArrayType() - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
- isBlank(String) - Static method in class pl.jalokim.utils.string.StringUtils
-
If whole text contains only white signs then return true.
- isCollectionType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is collection type.
- isCollectionType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is collection type.
- isEmpty(Collection<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It returns true when collection is null or empty.
- isEmpty(String) - Static method in class pl.jalokim.utils.string.StringUtils
-
Check that text is empty or null.
- isEnumType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is simple enum type.
- isEnumType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is simple enum type.
- isEnumType() - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
- isHavingElementsType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is array or collection type.
- isHavingElementsType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is array or collection type.
- isHavingElementsType() - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
When is some bag, it means when is array type or some collection.
- isLastIndex(List<?>, int) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
check that given index is last in certain list.
- isLastIndex(Object[], int) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
check that given index is last in certain array.
- isMapType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is map type.
- isMapType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is map type.
- isMapType() - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
- isNotBlank(String) - Static method in class pl.jalokim.utils.string.StringUtils
-
If whole text doesn't contain only white signs then return true.
- isNotEmpty(Collection<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
-
It returns true only when collection is not null, and if not empty.
- isNotEmpty(String) - Static method in class pl.jalokim.utils.string.StringUtils
-
Check that text is not empty.
- isNumberType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is number type.
- isNumberType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is number type.
- isSimpleType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is simple type.
- isSimpleType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is simple type.
- isSimpleType() - Method in class pl.jalokim.utils.reflection.TypeMetadata
-
When is simple primitive type.
- isTextType(Field) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given field is simple string type.
- isTextType(Class<?>) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
-
It checks that given class is simple string type.
- IterationException - Exception in pl.jalokim.utils.iteration
-
Wrapper exception for thrown exception from ExceptionableConsumer and ExceptionableRunnable.
- IterationException(Throwable) - Constructor for exception pl.jalokim.utils.iteration.IterationException
-
- IterationUtils - Class in pl.jalokim.utils.iteration
-
Another way of iterate code.
- LEFT_CURLY_BRACE - Static variable in class pl.jalokim.utils.constants.Constants
-
- LEFT_PARENTHESIS - Static variable in class pl.jalokim.utils.constants.Constants
-
- LEFT_SQUARE_PARENTHESIS - Static variable in class pl.jalokim.utils.constants.Constants
-
- listOfFiles(String) - Static method in class pl.jalokim.utils.file.FileUtils
-
It returns simple list of files.
- listOfFiles(Path) - Static method in class pl.jalokim.utils.file.FileUtils
-
It returns simple list of files.
- listOfFiles(File) - Static method in class pl.jalokim.utils.file.FileUtils
-
It returns simple list of files.
- listOfFiles(String, FileFilter) - Static method in class pl.jalokim.utils.file.FileUtils
-
It returns list of files which were filtered by fileFilter.
- listOfFiles(Path, FileFilter) - Static method in class pl.jalokim.utils.file.FileUtils
-
It returns list of files which were filtered by fileFilter.
- listOfFiles(File, FileFilter) - Static method in class pl.jalokim.utils.file.FileUtils
-
It returns list of files which were filtered by fileFilter.
- loadFileFromClassPathAsText(String) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file from classpath and put all content to String.
- loadFileFromClassPathAsText(String, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file from classpath and put all content to String with certain encoding.
- loadFileFromPathAsText(String) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file and put all content to String.
- loadFileFromPathAsText(String, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file and put all content to String with certain encoding.
- loadFileFromPathAsText(File) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file and put all content to String.
- loadFileFromPathAsText(File, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file and put all content to String with certain encoding.
- loadFileFromPathAsText(Path) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file and put all content to String with certain encoding.
- loadFileFromPathAsText(Path, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It read from file and put all content to String with certain encoding.
- loadFileFromPathToList(String) - Static method in class pl.jalokim.utils.file.FileUtils
-
It reads all lines to list from certain path from system for file.
- loadFileFromPathToList(String, Charset) - Static method in class pl.jalokim.utils.file.FileUtils
-
It reads all lines to list from certain path from system for file.