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

A

addWhenNotExist(List<T>, T) - Static method in class pl.jalokim.utils.collection.CollectionUtils
It add to list if is not present already.
appendAllElementsAsLinesToFile(String, List<String>) - Static method in class pl.jalokim.utils.file.FileUtils
It append all list element to file, every as separated line.
appendToFile(String, String) - Static method in class pl.jalokim.utils.file.FileUtils
Append some text to file.
asArray(T[]) - Method in class pl.jalokim.utils.collection.Elements
 
asList() - Method in class pl.jalokim.utils.collection.Elements
 
asSet() - Method in class pl.jalokim.utils.collection.Elements
 
asStream() - Method in class pl.jalokim.utils.collection.Elements
 

B

BACK_SLASH - Static variable in class pl.jalokim.utils.constants.Constants
 

C

close() - Method in class pl.jalokim.utils.file.FileCursor
 
CollectionUtils - Class in pl.jalokim.utils.collection
Some utils methods for collections.
CollectionUtilsException - Exception in pl.jalokim.utils.collection
 
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, 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(List<E>, Function<E, String>) - Static method in class pl.jalokim.utils.string.StringUtils
Return concatenated text all list elements as new lines.
Constants - Class in pl.jalokim.utils.constants
 
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.
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.

D

DOT - Static variable in class pl.jalokim.utils.constants.Constants
 

E

Elements<T> - Class in pl.jalokim.utils.collection
Simpler API than native java Stream API.
elements(Iterable<T>) - Static method in class pl.jalokim.utils.collection.Elements
 
elements(T...) - Static method in class pl.jalokim.utils.collection.Elements
 
elements(Stream<T>) - Static method in class pl.jalokim.utils.collection.Elements
 
EMPTY - Static variable in class pl.jalokim.utils.constants.Constants
 

F

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.
FileException - Exception in pl.jalokim.utils.file
Wrapper class for IOException types.
FileException(IOException) - Constructor for exception pl.jalokim.utils.file.FileException
 
FileUtils - Class in pl.jalokim.utils.file
Useful class for Files.
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.
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.

G

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.
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.
getLast(List<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
It returns last element from list if present.
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.
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,
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
It returns a type of generic object by given index.
getParametrizedType(Class<?>, int) - Static method in class pl.jalokim.utils.reflection.MetadataReflectionUtils
It returns a type of generic class by given index.
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.

H

hasNext() - Method in class pl.jalokim.utils.file.FileCursor
 
hasTheSameElements(Collection<T>, Collection<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
It return true when provided collections have the same elements.

I

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
 
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.
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(List<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
It returns true when list 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.
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.
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.
isNotBlank(String) - Static method in class pl.jalokim.utils.string.StringUtils
If whole text doesn't contain only white signs then return true
isNotEmpty(List<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
It returns true only when list 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.
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.

L

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.
loadFileFromPathToList(String) - Static method in class pl.jalokim.utils.file.FileUtils
It reads all lines to list from certain path from system for file.

M

map(Function<? super T, ? extends R>) - Method in class pl.jalokim.utils.collection.Elements
 
mapToList(Collection<T>, Function<T, R>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
This method return new List with mapped values from source collection.
mapToList(Collection<T>, Function<T, R>, Predicate<R>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
This method return new List with mapped values from source collection.
mapToList(Function<T, R>, T...) - Static method in class pl.jalokim.utils.collection.CollectionUtils
This method return new List with mapped values from source array.
mapToList(Function<T, R>, Predicate<R>, T...) - Static method in class pl.jalokim.utils.collection.CollectionUtils
This method return new List with mapped values from source array.
mapToSet(Collection<T>, Function<T, R>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
This method return new Set with mapped values from source collection.
mapToSet(Collection<T>, Function<T, R>, Predicate<R>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
This method return new Set with mapped values from source collection.
MetadataReflectionUtils - Class in pl.jalokim.utils.reflection
 

N

NEW_LINE - Static variable in class pl.jalokim.utils.constants.Constants
 
newInstance(Class<T>, List<Class<?>>, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
It create instance of object based on below arguments.
newInstance(Class<T>, List<Class<?>>, Object...) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
It create instance of object based on below arguments.
newInstance(Class<T>, List<Object>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
It create instance of object based on below arguments.
newInstance(Class<T>, Object...) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
It create instance of object based on below arguments.
newInstance(Class<T>) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
It create instance of object without constructor arguments.
next() - Method in class pl.jalokim.utils.file.FileCursor
 

O

overrideVariable(String, String) - Method in class pl.jalokim.utils.template.TemplateAsText
Override some placeholder.
ownRandomImpl(RandomUtilImpl) - Static method in class pl.jalokim.utils.random.RandomUtils
 

P

pl.jalokim.utils.collection - package pl.jalokim.utils.collection
 
pl.jalokim.utils.constants - package pl.jalokim.utils.constants
 
pl.jalokim.utils.file - package pl.jalokim.utils.file
 
pl.jalokim.utils.random - package pl.jalokim.utils.random
 
pl.jalokim.utils.reflection - package pl.jalokim.utils.reflection
 
pl.jalokim.utils.string - package pl.jalokim.utils.string
 
pl.jalokim.utils.template - package pl.jalokim.utils.template
 

R

randomElement(Collection<T>) - Static method in class pl.jalokim.utils.random.RandomUtils
It returns random element from collection
randomElement(T[]) - Static method in class pl.jalokim.utils.random.RandomUtils
It returns random element from array
randomElementImpl(Collection<T>) - Method in class pl.jalokim.utils.random.RandomUtilImpl
 
RandomException - Exception in pl.jalokim.utils.random
 
RandomException(String) - Constructor for exception pl.jalokim.utils.random.RandomException
 
randomIndex(List<T>) - Static method in class pl.jalokim.utils.random.RandomUtils
It returns random index for element from collection.
randomIndex(T[]) - Static method in class pl.jalokim.utils.random.RandomUtils
It returns random index for element from array.
randomInRange(int, int) - Static method in class pl.jalokim.utils.random.RandomUtils
Return random integer number.
randomInRangeImpl(int, int) - Method in class pl.jalokim.utils.random.RandomUtilImpl
 
randomTrue() - Method in class pl.jalokim.utils.random.RandomUtilImpl
 
randomTrue() - Static method in class pl.jalokim.utils.random.RandomUtils
It returns true or false randomly.
randomTrue(int) - Static method in class pl.jalokim.utils.random.RandomUtils
It returns true or false randomly based on probability of true value of boolean.
randomTrueWithProbability(int) - Method in class pl.jalokim.utils.random.RandomUtilImpl
 
RandomUtilImpl - Class in pl.jalokim.utils.random
 
RandomUtilImpl() - Constructor for class pl.jalokim.utils.random.RandomUtilImpl
 
RandomUtilImpl(Random) - Constructor for class pl.jalokim.utils.random.RandomUtilImpl
 
RandomUtils - Class in pl.jalokim.utils.random
Util class for some random things.
readFileFromPathToFileCursor(String) - Static method in class pl.jalokim.utils.file.FileUtils
It create instance of FileCursor.
ReflectionOperationException - Exception in pl.jalokim.utils.reflection
 
ReflectionOperationException(Throwable) - Constructor for exception pl.jalokim.utils.reflection.ReflectionOperationException
 
ReflectionOperationException(String) - Constructor for exception pl.jalokim.utils.reflection.ReflectionOperationException
 
ReflectionOperationException(String, Throwable) - Constructor for exception pl.jalokim.utils.reflection.ReflectionOperationException
 
repeatTextNTimes(int, String) - Static method in class pl.jalokim.utils.string.StringUtils
It create text with n times repeated text

S

setValueForField(Object, String, Object) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
Setup new value for target object for given field name.
setValueForField(Object, Class<?>, String, Object) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
Setup new value for target object for given field name.
setValueForStaticField(Class<?>, String, Object) - Static method in class pl.jalokim.utils.reflection.InvokableReflectionUtils
It can't override primitive static final fields and static final String fields.
SLASH - Static variable in class pl.jalokim.utils.constants.Constants
 
sortAsNewList(Collection<T>) - Static method in class pl.jalokim.utils.collection.CollectionUtils
It get list and sort elements but not change source list.
SPACE - Static variable in class pl.jalokim.utils.constants.Constants
 
StringUtils - Class in pl.jalokim.utils.string
 
swapElementsAsNewList(List<T>, int, T) - Static method in class pl.jalokim.utils.collection.CollectionUtils
Swap element in copy of sourceList and returns it.

T

TAB - Static variable in class pl.jalokim.utils.constants.Constants
 
tabsNTimes(int) - Static method in class pl.jalokim.utils.string.StringUtils
It return N times of tabulator
TemplateAsText - Class in pl.jalokim.utils.template
Utils class for some text with template, can override some placeholders.

W

writeAllElementsAsLinesToFile(String, List<String>) - Static method in class pl.jalokim.utils.file.FileUtils
It writes all list element to file, every as separated line.
writeToFile(String, String) - Static method in class pl.jalokim.utils.file.FileUtils
It override current file content if exists.
A B C D E F G H I L M N O P R S T W 
Skip navigation links

Copyright © 2019. All rights reserved.