Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abs() - Method in class org.bardframework.commons.utils.Fraction
-
Gets a fraction that is the positive equivalent of this one.
- accessibleConstructor(Class<T>, Class<?>...) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Obtain an accessible constructor for the given class and parameters.
- add(Fraction) - Method in class org.bardframework.commons.utils.Fraction
-
Adds the value of this fraction to another, returning the result in reduced form.
- addObjectToArray(A[], O) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Append the given object to the given array, returning a new array consisting of the input array contents plus the given object.
- allNotNull(Object...) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Checks if all values in the array are not
nulls. - anyNotNull(Object...) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Checks if any value in the given array is not
null. - arraySplit(T[], int) - Static method in class org.bardframework.commons.utils.OsUtils
- assertEquals(byte[], byte[]) - Static method in class org.bardframework.commons.utils.AssertionUtils
- AssertionUtils - Class in org.bardframework.commons.utils
-
Created by vahid (va.zafari@gmail.com) on 10/30/17.
B
- BytesUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari.
C
- caseInsensitiveValueOf(E[], String) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Case insensitive alternative to
Enum.valueOf(Class, String). - CharsetUtils - Class in org.bardframework.commons.utils
-
Demonstrate default Charset-related details.
- clone(T) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Clone an object.
- cloneIfPossible(T) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Clone an object if possible.
- collectionSplit(List, int) - Static method in class org.bardframework.commons.utils.OsUtils
- compare(T, T) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Null safe comparison of Comparables.
- compare(T, T, boolean) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Null safe comparison of Comparables.
- compareTo(Fraction) - Method in class org.bardframework.commons.utils.Fraction
-
Compares this object to another based on size.
- CONST(boolean) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(byte) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(char) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(double) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(float) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(int) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(long) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(short) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST(T) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST_BYTE(int) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- CONST_SHORT(int) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
This method returns the provided value unchanged.
- containsConstant(Enum<?>[], String) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Check whether the given array of enum constants contains a constant with the given name, ignoring case when determining a match.
- containsConstant(Enum<?>[], String, boolean) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Check whether the given array of enum constants contains a constant with the given name.
- containsElement(Object[], Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Check whether the given array contains the given element.
- COPYABLE_FIELDS - Static variable in class org.bardframework.commons.utils.ReflectionUtils
-
Pre-built FieldFilter that matches all non-static, non-final fields.
D
- dateTimeFromEpochMills(long) - Static method in class org.bardframework.commons.utils.DateTimeUtils
-
Obtains an instance of
LocalDateTimeusing milliseconds from the epoch of 1970-01-01T00:00:00Z. - DateTimeUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 8/12/2016.
- declaresException(Method, Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given method explicitly declares the given exception or one of its superclasses, which means that an exception of that type can be propagated as-is within a reflective invocation.
- decodeBase64(byte[]) - Static method in class org.bardframework.commons.utils.EncodingUtils
- decodeBase64(String) - Static method in class org.bardframework.commons.utils.EncodingUtils
- decrypt(byte[], byte[]) - Static method in class org.bardframework.commons.utils.EncryptionUtil
- decrypt(String, String) - Static method in class org.bardframework.commons.utils.EncryptionUtil
- defaultIfNull(T, T) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Returns a default value if the object passed is
null. - deserialize(byte[]) - Static method in class org.bardframework.commons.utils.SerializationUtils
- deserialize(InputStream) - Static method in class org.bardframework.commons.utils.SerializationUtils
- deserializeAndCheckObject(byte[], Class<? extends Serializable>) - Static method in class org.bardframework.commons.utils.SerializationUtils
- digest(String, byte[]) - Static method in class org.bardframework.commons.utils.DigestUtils
- digest(String, String) - Static method in class org.bardframework.commons.utils.DigestUtils
- DigestUtils - Class in org.bardframework.commons.utils
- divideBy(Fraction) - Method in class org.bardframework.commons.utils.Fraction
-
Divide the value of this fraction by another.
- doesNotContain(String, String, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the given text does not contain the given substring.
- doesNotContain(String, String, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the given text does not contain the given substring.
- doubleValue() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the fraction as a
double. - doWith(Field) - Method in interface org.bardframework.commons.utils.ReflectionUtils.FieldCallback
-
Perform an operation using the given field.
- doWith(Method) - Method in interface org.bardframework.commons.utils.ReflectionUtils.MethodCallback
-
Perform an operation using the given method.
- doWithFields(Class<?>, ReflectionUtils.FieldCallback) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Invoke the given callback on all fields in the target class, going up the class hierarchy to get all declared fields.
- doWithFields(Class<?>, ReflectionUtils.FieldCallback, ReflectionUtils.FieldFilter) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Invoke the given callback on all fields in the target class, going up the class hierarchy to get all declared fields.
- doWithLocalFields(Class<?>, ReflectionUtils.FieldCallback) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Invoke the given callback on all locally declared fields in the given class.
- doWithLocalMethods(Class<?>, ReflectionUtils.MethodCallback) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Perform the given callback operation on all matching methods of the given class, as locally declared or equivalent thereof (such as default methods on Java 8 based interfaces that the given class implements).
- doWithMethods(Class<?>, ReflectionUtils.MethodCallback) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Perform the given callback operation on all matching methods of the given class and superclasses.
- doWithMethods(Class<?>, ReflectionUtils.MethodCallback, ReflectionUtils.MethodFilter) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Perform the given callback operation on all matching methods of the given class and superclasses (or given interface and super-interfaces).
- doWork(JarFile) - Method in class org.bardframework.commons.utils.JarFileUtils.JarDirectoryExtractor
- doWork(JarFile) - Method in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- doWork(JarFile) - Method in interface org.bardframework.commons.utils.JarFileUtils.JarModifier
- doWork(JarFile) - Method in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
E
- encodeBase64(byte[]) - Static method in class org.bardframework.commons.utils.EncodingUtils
- encodeBase64ToByteArray(byte[]) - Static method in class org.bardframework.commons.utils.EncodingUtils
- EncodingUtils - Class in org.bardframework.commons.utils
- encrypt(byte[], byte[]) - Static method in class org.bardframework.commons.utils.EncryptionUtil
- encrypt(String, String) - Static method in class org.bardframework.commons.utils.EncryptionUtil
- EncryptionUtil - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 4/21/2016.
- equals(Object) - Method in class org.bardframework.commons.utils.Fraction
-
Compares this fraction to another object to test if they are equal.
F
- fetchPropertyFields(Set<String>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- fillTemplate(String, String, String, Map<String, String>) - Static method in class org.bardframework.commons.utils.StringTemplateUtils
- fillTemplate(String, Map<String, String>) - Static method in class org.bardframework.commons.utils.StringTemplateUtils
- fillUrlTemplate(String, String, String, Map<String, String>) - Static method in class org.bardframework.commons.utils.UrlUtils
- fillUrlTemplate(String, Map<String, String>) - Static method in class org.bardframework.commons.utils.UrlUtils
- findField(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- findField(Class<?>, String, Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- findField(Class<?>, ReflectionUtils.DescribedFieldFilter) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Finds the field matching the given
ReflectionUtils.DescribedFieldFilter. - findField(Class<?>, ReflectionUtils.DescribedFieldFilter, boolean) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Finds the field matching the given
ReflectionUtils.DescribedFieldFilter. - findField(Class<?>, ReflectionUtils.FieldFilter) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Finds the first field on the given class matching the given
ReflectionUtils.FieldFilter. - findMethod(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Attempt to find a
Methodon the supplied class with the supplied name and no parameters. - findMethod(Class<?>, String, Class<?>...) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Attempt to find a
Methodon the supplied class with the supplied name and parameter types. - findRequiredField(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Finds the field of the given name on the given type.
- findRequiredMethod(Class<?>, String, Class<?>...) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Returns the method with the given name of the given class and parameter types.
- firstNonNull(T...) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Returns the first value in the array which is not
null. - floatValue() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the fraction as a
float. - formatIp(String) - Static method in class org.bardframework.commons.utils.IpUtils
- FOUR_FIFTHS - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 4/5. - Fraction - Class in org.bardframework.commons.utils
-
Fractionis aNumberimplementation that stores fractions accurately. - fromEpochMills(long) - Static method in class org.bardframework.commons.utils.DateTimeUtils
- fromEpochMills(long, ZoneId) - Static method in class org.bardframework.commons.utils.DateTimeUtils
-
Obtains an instance of
LocalDateTimeusing milliseconds from the epoch of 1970-01-01T00:00:00Z.
G
- ge(long, long) - Static method in class org.bardframework.commons.utils.AssertionUtils
- ge(long, long, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
- getAllDeclaredMethods(Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Get all declared methods on the leaf class and all superclasses.
- getContainerCLassByField(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getContainerClassByGetter(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getCpuUsagePercent() - Static method in class org.bardframework.commons.utils.OsUtils
- getCurrentMethod(StackTraceElement) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getDeclaredField(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getDeclaredMethods(Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Variant of
Class.getDeclaredMethods()that uses a local cache in order to avoid the JVM's SecurityManager check and new Method instances. - getDefaultCharset() - Static method in class org.bardframework.commons.utils.CharsetUtils
- getDefaultEncoding() - Static method in class org.bardframework.commons.utils.CharsetUtils
-
Supplies the default encoding without using Charset.defaultCharset() and without accessing System.getProperty("file.encoding").
- getDefaultLocale() - Static method in class org.bardframework.commons.utils.CharsetUtils
- getDenominator() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the denominator part of the fraction.
- getDescription() - Method in interface org.bardframework.commons.utils.ReflectionUtils.DescribedFieldFilter
-
Returns the description of the field filter.
- getDisplayString(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a content-based String representation if
objis notnull; otherwise returns an empty String. - getDouble(Object) - Static method in class org.bardframework.commons.utils.NumberUtils
-
remove all non-digit character form string, if remain string not empty, return double value of that, else return 0
- getField(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getField(Field, Object) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Get the field represented by the supplied
field objecton the specifiedtarget object. - getFieldAnnotationMap(Class<?>, Class<T>, boolean) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getFields(Class<?>, Class<T>, boolean) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getFileEncoding() - Static method in class org.bardframework.commons.utils.CharsetUtils
- getFraction(double) - Static method in class org.bardframework.commons.utils.Fraction
-
Creates a
Fractioninstance from adoublevalue. - getFraction(int, int) - Static method in class org.bardframework.commons.utils.Fraction
-
Creates a
Fractioninstance with the 2 parts of a fraction Y/Z. - getFraction(int, int, int) - Static method in class org.bardframework.commons.utils.Fraction
-
Creates a
Fractioninstance with the 3 parts of a fraction X Y/Z. - getFraction(String) - Static method in class org.bardframework.commons.utils.Fraction
-
Creates a Fraction from a
String. - getGenericClass(Class<?>, int) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getGenericSuperClass(Class<?>, int) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getGetter(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getGetterMethod(Class<?>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getGetterName(String, Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getIdentityHexString(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hex String form of an object's identity hash code.
- getLastDigit(long, int) - Static method in class org.bardframework.commons.utils.NumberUtils
- getLongList(String...) - Static method in class org.bardframework.commons.utils.OsUtils
- getLongList(Collection<String>) - Static method in class org.bardframework.commons.utils.OsUtils
- getNowUtcMills() - Static method in class org.bardframework.commons.utils.DateTimeUtils
- getNumberArray(int, int, int) - Static method in class org.bardframework.commons.utils.OsUtils
- getNumbers(String) - Static method in class org.bardframework.commons.utils.NumberUtils
- getNumerator() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the numerator part of the fraction.
- getNumeric(Object) - Static method in class org.bardframework.commons.utils.NumberUtils
- getNumeric(String) - Static method in class org.bardframework.commons.utils.NumberUtils
-
remove all non-digit character (not minus in start if string '-') form string, if remain string not empty, return long value of that, else return 0
- getNumeric(Collection<String>) - Static method in class org.bardframework.commons.utils.NumberUtils
- getPrimitiveDefault(Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Get default value for a primitive type.
- getProperNumerator() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the proper numerator, always positive.
- getPropertyValue(Object, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getProperWhole() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the proper whole part of the fraction.
- getReducedFraction(int, int) - Static method in class org.bardframework.commons.utils.Fraction
-
Creates a reduced
Fractioninstance with the 2 parts of a fraction Y/Z. - getReplacements() - Method in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- getReplacements() - Method in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
- getSavePath() - Method in class org.bardframework.commons.utils.JarFileUtils.JarDirectoryExtractor
- getSavePath() - Method in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- getSavePath() - Method in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
- getSetter(Class<?>, String, Class<?>...) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getSetterName(String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getSubTypeOf(String, Class<T>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getSunEncoding() - Static method in class org.bardframework.commons.utils.CharsetUtils
- getSupersOf(Class<?>, boolean, boolean, boolean) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- getUniqueDeclaredMethods(Class<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Get the unique set of declared methods on the leaf class and all superclasses.
- getUniqueDeclaredMethods(Class<?>, ReflectionUtils.MethodFilter) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Get the unique set of declared methods on the leaf class and all superclasses.
- getZipDirectoryEntry() - Method in class org.bardframework.commons.utils.JarFileUtils.JarDirectoryExtractor
- getZipEntry() - Method in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- getZipEntry() - Method in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
- gt(long, long) - Static method in class org.bardframework.commons.utils.AssertionUtils
- gt(long, long, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
H
- handleInvocationTargetException(InvocationTargetException) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Handle the given invocation target exception.
- handleReflectionException(Exception) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Handle the given reflection exception.
- hashCode() - Method in class org.bardframework.commons.utils.Fraction
-
Gets a hashCode for the fraction.
- hasText(String, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the given String contains valid text content; that is, it must not be
nulland must contain at least one non-whitespace character. - hasText(String, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the given String contains valid text content; that is, it must not be
nulland must contain at least one non-whitespace character. - hexEncode(byte[]) - Static method in class org.bardframework.commons.utils.EncodingUtils
I
- identityToString(Appendable, Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Appends the toString that would be produced by
Objectif a class did not override toString itself. - identityToString(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Gets the toString that would be produced by
Objectif a class did not override toString itself. - identityToString(StringBuffer, Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Appends the toString that would be produced by
Objectif a class did not override toString itself. - identityToString(StringBuilder, Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Appends the toString that would be produced by
Objectif a class did not override toString itself. - ImageUtils - Class in org.bardframework.commons.utils
- indexOf(byte[], byte[]) - Static method in class org.bardframework.commons.utils.BytesUtils
-
Returns the index within src of the first occurrence of the specified search bytes.
- intValue() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the fraction as an
int. - invert() - Method in class org.bardframework.commons.utils.Fraction
-
Gets a fraction that is the inverse (1/fraction) of this one.
- invokeMethod(Method, Object) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Invoke the specified
Methodagainst the supplied target object with no arguments. - invokeMethod(Method, Object, Object...) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Invoke the specified
Methodagainst the supplied target object with the supplied arguments. - IpUtils - Class in org.bardframework.commons.utils
- isArray(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Determine whether the given object is an array: either an Object array or a primitive array.
- isAssignable(Class<?>, Class<?>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that
superType.isAssignableFrom(subType)istrue. - isAssignable(Class<?>, Class<?>, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that
superType.isAssignableFrom(subType)istrue. - isAssignable(Class<?>, Class<?>, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that
superType.isAssignableFrom(subType)istrue. - isCglibRenamedMethod(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given method is a CGLIB 'renamed' method, following the pattern "CGLIB$methodName$0".
- isCheckedException(Throwable) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return whether the given throwable is a checked exception: that is, neither a RuntimeException nor an Error.
- isCompatibleWithThrowsClause(Throwable, Class<?>...) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Check whether the given exception is compatible with the specified exception types, as declared in a throws clause.
- isContainField(Set<String>, String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- isEmpty(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Checks if an Object is empty or null.
- isEmpty(Object[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Determine whether the given array is empty: i.e.
- isEqualsMethod(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given method is an "equals" method.
- isExist(byte[], byte[]) - Static method in class org.bardframework.commons.utils.BytesUtils
- isHashCodeMethod(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given method is a "hashCode" method.
- isInstanceOf(Class<?>, Object) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the provided object is an instance of the provided class.
- isInstanceOf(Class<?>, Object, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the provided object is an instance of the provided class.
- isInstanceOf(Class<?>, Object, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the provided object is an instance of the provided class.
- isNotBlank(String, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the given String is not empty; that is, it must not be
nulland not the empty String. - isNotBlank(String, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that the given String is not empty; that is, it must not be
nulland not the empty String. - isNotEmpty(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Checks if an Object is not empty and not null.
- isNull(Object, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an object is
null. - isNull(Object, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an object is
null. - isObjectMethod(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given method is originally declared by
Object. - isPublicStaticFinal(Field) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given field is a "public static final" constant.
- isToStringMethod(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Determine whether the given method is a "toString" method.
- isTrue(boolean, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert a boolean expression, throwing an
IllegalArgumentExceptionif the expression evaluates tofalse. - isTrue(boolean, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert a boolean expression, throwing an
IllegalArgumentExceptionif the expression evaluates tofalse.
J
- JarDirectoryExtractor(String, Path) - Constructor for class org.bardframework.commons.utils.JarFileUtils.JarDirectoryExtractor
- JarFileEntrySaver(String, File) - Constructor for class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- JarFileEntrySaver(String, File, Map<byte[], byte[]>) - Constructor for class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- JarFileUtils - Class in org.bardframework.commons.utils
- JarFileUtils() - Constructor for class org.bardframework.commons.utils.JarFileUtils
- JarFileUtils.JarDirectoryExtractor - Class in org.bardframework.commons.utils
- JarFileUtils.JarFileEntrySaver - Class in org.bardframework.commons.utils
- JarFileUtils.JarModifier - Interface in org.bardframework.commons.utils
- JarFileUtils.JarTextFileExtractor - Class in org.bardframework.commons.utils
- JarTextFileExtractor(String, File) - Constructor for class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
- JarTextFileExtractor(String, File, Map<String, String>) - Constructor for class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
L
- longValue() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the fraction as a
long. - lowerCaseFirstLetter(String) - Static method in class org.bardframework.commons.utils.ReflectionUtils
M
- makeAccessible(Constructor<?>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Make the given constructor accessible, explicitly setting it accessible if necessary.
- makeAccessible(Field) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Make the given field accessible, explicitly setting it accessible if necessary.
- makeAccessible(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Make the given method accessible, explicitly setting it accessible if necessary.
- makeCleanUrl(String...) - Static method in class org.bardframework.commons.utils.UrlUtils
- matches(Field) - Method in interface org.bardframework.commons.utils.ReflectionUtils.FieldFilter
-
Determine whether the given field matches.
- matches(Method) - Method in interface org.bardframework.commons.utils.ReflectionUtils.MethodFilter
-
Determine whether the given method matches.
- max(T...) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Null safe comparison of Comparables.
- methodToFieldName(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- min(T...) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Null safe comparison of Comparables.
- modify(File, List<JarFileUtils.JarModifier>) - Static method in class org.bardframework.commons.utils.JarFileUtils
- moneyMask(double) - Static method in class org.bardframework.commons.utils.MoneyUtils
- moneyMask(long) - Static method in class org.bardframework.commons.utils.MoneyUtils
- MoneyUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 8/12/2016.
- multiplyBy(Fraction) - Method in class org.bardframework.commons.utils.Fraction
-
Multiplies the value of this fraction by another, returning the result in reduced form.
N
- negate() - Method in class org.bardframework.commons.utils.Fraction
-
Gets a fraction that is the negative (-fraction) of this one.
- newInstance(Class<T>) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- noNullElements(Object[], String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an array contains no
nullelements. - noNullElements(Object[], Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an array contains no
nullelements. - noNullElements(Collection<?>, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that a collection contains no
nullelements. - noNullElements(Collection<?>, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that a collection contains no
nullelements. - notEmpty(Object[], String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an array contains elements; that is, it must not be
nulland must contain at least one element. - notEmpty(Object[], Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an array contains elements; that is, it must not be
nulland must contain at least one element. - notEmpty(Collection<?>, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that a collection contains elements; that is, it must not be
nulland must contain at least one element. - notEmpty(Collection<?>, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that a collection contains elements; that is, it must not be
nulland must contain at least one element. - notEmpty(Map<?, ?>, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that a Map contains entries; that is, it must not be
nulland must contain at least one entry. - notEmpty(Map<?, ?>, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that a Map contains entries; that is, it must not be
nulland must contain at least one entry. - notNull(Object, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an object is not
null. - notNull(Object, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert that an object is not
null. - NULL - Static variable in class org.bardframework.commons.utils.ObjectUtils
-
Singleton used as a
nullplaceholder wherenullhas another meaning. - nullSafeClassName(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Determine the class name for the given object.
- nullSafeEquals(Object, Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Determine if the given objects are equal, returning
trueif both arenullorfalseif only one isnull. - nullSafeHashCode(boolean[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(byte[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(char[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(double[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(float[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(int[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(long[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(short[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return as hash code for the given object; typically the value of
Object#hashCode()}. - nullSafeHashCode(Object[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a hash code based on the contents of the specified array.
- nullSafeToString(boolean[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(byte[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(char[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(double[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(float[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(int[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(long[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(short[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- nullSafeToString(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the specified Object.
- nullSafeToString(Object[]) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Return a String representation of the contents of the specified array.
- NumberUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 8/12/2016.
O
- ObjectUtils - Class in org.bardframework.commons.utils
-
Operations on
Object. - ObjectUtils.Null - Class in org.bardframework.commons.utils
-
Class used as a null placeholder where
nullhas another meaning. - ONE - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 1. - ONE_FIFTH - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 1/5. - ONE_HALF - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 1/2. - ONE_QUARTER - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 1/4. - ONE_THIRD - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 1/3. - org.bardframework.commons.utils - package org.bardframework.commons.utils
- OsUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 8/12/2016.
P
- pow(int) - Method in class org.bardframework.commons.utils.Fraction
-
Gets a fraction that is raised to the passed in power.
R
- rawDigest(String, byte[]) - Static method in class org.bardframework.commons.utils.DigestUtils
- reduce() - Method in class org.bardframework.commons.utils.Fraction
-
Reduce the fraction to the smallest values for the numerator and denominator, returning the result.
- ReflectionUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 8/12/2016.
- ReflectionUtils.DescribedFieldFilter - Interface in org.bardframework.commons.utils
-
A
ReflectionUtils.FieldFilterthat has a description. - ReflectionUtils.FieldCallback - Interface in org.bardframework.commons.utils
-
Callback interface invoked on each field in the hierarchy.
- ReflectionUtils.FieldFilter - Interface in org.bardframework.commons.utils
-
Callback optionally used to filter fields to be operated on by a field callback.
- ReflectionUtils.MethodCallback - Interface in org.bardframework.commons.utils
-
Action to take on each method.
- ReflectionUtils.MethodFilter - Interface in org.bardframework.commons.utils
-
Callback optionally used to filter methods to be operated on by a method callback.
- replace(byte[], byte[], byte[]) - Static method in class org.bardframework.commons.utils.BytesUtils
-
find and replace must have same size
- replacements - Variable in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- replacements - Variable in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
- resize(BufferedImage, int) - Static method in class org.bardframework.commons.utils.ImageUtils
-
resize image, keep aspect ratio
- resize(BufferedImage, int, int) - Static method in class org.bardframework.commons.utils.ImageUtils
- rethrowException(Throwable) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Rethrow the given
exception, which is presumably the target exception of anInvocationTargetException. - rethrowRuntimeException(Throwable) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Rethrow the given
exception, which is presumably the target exception of anInvocationTargetException. - returnTypeAndParameters(Method) - Static method in class org.bardframework.commons.utils.ReflectionUtils
S
- savePath - Variable in class org.bardframework.commons.utils.JarFileUtils.JarDirectoryExtractor
- savePath - Variable in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- savePath - Variable in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
- SerializationUtils - Class in org.bardframework.commons.utils
- serialize(Serializable) - Static method in class org.bardframework.commons.utils.SerializationUtils
- serialize(Serializable, OutputStream) - Static method in class org.bardframework.commons.utils.SerializationUtils
- serializeAndEncodeObject(Serializable) - Static method in class org.bardframework.commons.utils.SerializationUtils
- setField(Field, Object, Object) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Set the field represented by the supplied field object on the specified target object to the specified
value. - setValue(Object, String, Object) - Static method in class org.bardframework.commons.utils.ReflectionUtils
- sha(byte[]) - Static method in class org.bardframework.commons.utils.DigestUtils
- sha(String) - Static method in class org.bardframework.commons.utils.DigestUtils
- sha512(String) - Static method in class org.bardframework.commons.utils.DigestUtils
- shallowCopyFieldState(Object, Object) - Static method in class org.bardframework.commons.utils.ReflectionUtils
-
Given the source object and the destination, which must be the same class or a subclass, copy all fields, including inherited fields.
- state(boolean, String) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert a boolean expression, throwing an
IllegalStateExceptionif the expression evaluates tofalse. - state(boolean, Supplier<String>) - Static method in class org.bardframework.commons.utils.AssertionUtils
-
Assert a boolean expression, throwing an
IllegalStateExceptionif the expression evaluates tofalse. - StringTemplateUtils - Class in org.bardframework.commons.utils
- subtract(Fraction) - Method in class org.bardframework.commons.utils.Fraction
-
Subtracts the value of another fraction from the value of this one, returning the result in reduced form.
T
- THREE_FIFTHS - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 3/5. - THREE_QUARTERS - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 3/4. - toCharset(String) - Static method in class org.bardframework.commons.utils.CharsetUtils
-
Returns a Charset for the named charset.
- toCharset(Charset) - Static method in class org.bardframework.commons.utils.CharsetUtils
-
Returns the given Charset or the default Charset if the given Charset is null.
- toChronoUnit(TimeUnit) - Static method in class org.bardframework.commons.utils.DateTimeUtils
- toEpochMills(LocalDate) - Static method in class org.bardframework.commons.utils.DateTimeUtils
-
calculate milliseconds past from the epoch of 1970-01-01T00:00:00Z.
- toEpochMills(LocalDateTime) - Static method in class org.bardframework.commons.utils.DateTimeUtils
-
calculatee milliseconds past from the epoch of 1970-01-01T00:00:00Z.
- toEpochMills(OffsetDateTime) - Static method in class org.bardframework.commons.utils.DateTimeUtils
- toInt(String, int) - Static method in class org.bardframework.commons.utils.NumberUtils
-
Convert a
Stringto aint, returning a default value if the conversion fails. - toLocalString(LocalDate) - Static method in class org.bardframework.commons.utils.DateTimeUtils
-
convert date to string divided by '/'
- toLocalString(LocalDateTime) - Static method in class org.bardframework.commons.utils.DateTimeUtils
-
convert date to string divided by '/'
- toLong(String, long) - Static method in class org.bardframework.commons.utils.NumberUtils
-
Convert a
Stringto along, returning a default value if the conversion fails. - toObjectArray(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Convert the given array (which may be a primitive array) to an object array (if necessary of primitive wrapper objects).
- toProperString() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the fraction as a proper
Stringin the format X Y/Z. - toString() - Method in class org.bardframework.commons.utils.Fraction
-
Gets the fraction as a
String. - toTimeUnit(ChronoUnit) - Static method in class org.bardframework.commons.utils.DateTimeUtils
- TWO_FIFTHS - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 2/5. - TWO_QUARTERS - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 2/4. - TWO_THIRDS - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 2/3.
U
- unwrapOptional(Object) - Static method in class org.bardframework.commons.utils.ObjectUtils
-
Unwrap the given object which is potentially a
Optional. - update(File, Map<String, byte[]>) - Static method in class org.bardframework.commons.utils.JarFileUtils
- urlEncode(String) - Static method in class org.bardframework.commons.utils.EncodingUtils
- urlEncode(String) - Static method in class org.bardframework.commons.utils.UrlUtils
-
Url encode a value using UTF-8 encoding.
- urlEncodeValues(Map<String, String>) - Static method in class org.bardframework.commons.utils.UrlUtils
- UrlUtils - Class in org.bardframework.commons.utils
-
Created by Vahid Zafari on 8/12/2016.
- USER_DECLARED_METHODS - Static variable in class org.bardframework.commons.utils.ReflectionUtils
-
Pre-built MethodFilter that matches all non-bridge non-synthetic methods which are not declared on
java.lang.Object.
Y
- YEAR_DURATION_MILLS - Static variable in class org.bardframework.commons.utils.DateTimeUtils
Z
- ZERO - Static variable in class org.bardframework.commons.utils.Fraction
-
Fractionrepresentation of 0. - zipDirectoryEntry - Variable in class org.bardframework.commons.utils.JarFileUtils.JarDirectoryExtractor
- zipEntry - Variable in class org.bardframework.commons.utils.JarFileUtils.JarFileEntrySaver
- zipEntry - Variable in class org.bardframework.commons.utils.JarFileUtils.JarTextFileExtractor
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form