Skip navigation links
A C D F G I M N P S T V 

A

add(Date, int, TimeUnit) - Static method in class com.blibli.oss.common.helper.DateHelper
Adds the specified amount of time to the given date.
addToList(List<T>, V...) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Denullifies the given list and adds elems to it.

C

CollectionHelper - Class in com.blibli.oss.common.helper
 
CollectionHelper() - Constructor for class com.blibli.oss.common.helper.CollectionHelper
 
com.blibli.oss.common.helper - package com.blibli.oss.common.helper
 
com.blibli.oss.common.helper.constants - package com.blibli.oss.common.helper.constants
 
CommonDateTimePatterns - Class in com.blibli.oss.common.helper.constants
Common Date Time Patterns in conformity with DateTimeFormat.
CommonDateTimePatterns() - Constructor for class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
 
CommonHelper - Class in com.blibli.oss.common.helper
 
CommonHelper() - Constructor for class com.blibli.oss.common.helper.CommonHelper
 
Comparator - Enum in com.blibli.oss.common.helper.constants
General purpose comparator.

D

DateHelper - Class in com.blibli.oss.common.helper
 
DateHelper() - Constructor for class com.blibli.oss.common.helper.DateHelper
 
dd_MM_yy - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29-01-17
dd_MM_yyyy - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29-01-2017
dd_MMM_yyyy - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017
dd_MMM_yyyy__HH_mm - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017 13:50
dd_MMM_yyyy__hh_mm_a - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017 01:50 PM
dd_MMM_yyyy__HH_mm_ss - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017 13:50:59
dd_MMM_yyyy__hh_mm_ss_a - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017 01:50:59 PM
dd_MMM_yyyy__HH_mm_ss_SSS - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017 13:50:59.370
dd_MMM_yyyy__hh_mm_ss_SSS_a - Static variable in class com.blibli.oss.common.helper.constants.CommonDateTimePatterns
Sample result: 29 Jan 2017 01:50:59.370 PM
denullify(Boolean) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns default value of Boolean (i.e.
denullify(Date) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns new Date if the given date is null.
denullify(T, Class<S>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns new instance of clazz if the input t is null.
denullify(T, S, S...) - Static method in class com.blibli.oss.common.helper.CommonHelper
Denullifies the given object by substituting it with the provided sub or subs.
denullify(Double) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns default value of Double (i.e.
denullify(Integer) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns default value of Integer (i.e.
denullify(List<T>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns new ArrayList if input is null.
denullify(Long) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns default value of Long (i.e.
denullify(Map<K, V>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns empty HashMap if input is null.
denullify(Set<T>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns empty HashSet if input is null.
denullify(String) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns empty String if input is null.
doIfNotNull(T, Consumer<T>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Shortens null object validation before doing an operation on that object.
Note that this does not validate null sub-objects.

F

findInCollection(Collection<T>, Predicate<T>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Finds the first element in the collection that satisfies the predicate func.
forEach(Iterable<T>, Consumer<T>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Executes function func on the given collection coll.

G

generateUUID() - Static method in class com.blibli.oss.common.helper.CommonHelper
Generates new random UUID using UUID.randomUUID()
getIfNotNull(T, Function<T, R>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Shortens null object validation before doing a value-returning operation on that object.
Note that this does not validate null sub-objects.

Also note that the operation cannot return void.

I

is(Date, TimeComparator, Date) - Static method in class com.blibli.oss.common.helper.DateHelper
Evaluates whether firstDate satisfies comparator when compared to secondDate.
is(BigDecimal, Comparator, BigDecimal) - Static method in class com.blibli.oss.common.helper.NumberHelper
Evaluates num1 to num2 according to the operand cmp.
is(Double, Comparator, Double) - Static method in class com.blibli.oss.common.helper.NumberHelper
see ref
is(Long, Comparator, Long) - Static method in class com.blibli.oss.common.helper.NumberHelper
see ref
isEmpty(Collection<?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Checks if coll is either null or empty.
isEmpty(Map<?, ?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Checks if map is either null or empty.
isInCollection(T, Collection<T>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Checks whether ele is in the given coll.
isInEnumSet(E, E...) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Checks if the enum e is in the given array of enums.
isNotEmpty(Collection<?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
isNotEmpty(Map<?, ?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper

M

minus(Date, int, TimeUnit) - Static method in class com.blibli.oss.common.helper.DateHelper
Subtracts the specified amount of time from the given date.

N

now() - Static method in class com.blibli.oss.common.helper.DateHelper
Syntax sugar.
now(String) - Static method in class com.blibli.oss.common.helper.DateHelper
Returns string representation of the current time according to the given pattern.
NumberHelper - Class in com.blibli.oss.common.helper
 
NumberHelper() - Constructor for class com.blibli.oss.common.helper.NumberHelper
 
NumberHelper.ParseMode - Enum in com.blibli.oss.common.helper
 

P

parseDouble(String, NumberHelper.ParseMode) - Static method in class com.blibli.oss.common.helper.NumberHelper
Parses the given str as double.
parseInt(String, NumberHelper.ParseMode) - Static method in class com.blibli.oss.common.helper.NumberHelper
Parses the given str as int.
parseLong(String, NumberHelper.ParseMode) - Static method in class com.blibli.oss.common.helper.NumberHelper
Parses the given str as long.

S

sanitize(Collection<?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Removes null elements from the collection.
sanitize(Map<?, ?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Removes elements with either null key or null value from the map.
sizeOf(Collection<?>) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Returns the size of the given collection.

T

TimeComparator - Enum in com.blibli.oss.common.helper.constants
Time comparator.
TimeUnit - Enum in com.blibli.oss.common.helper.constants
General purpose time unit.
toDate(String, String) - Static method in class com.blibli.oss.common.helper.DateHelper
Parses the given str using pattern to an instance of Date.
toList(T...) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Converts the given array of elements of type T to a new instance of ArrayList of the same type.
toLowerCase(String) - Static method in class com.blibli.oss.common.helper.CommonHelper
Shortens null validation on a String before invoking String.toLowerCase().
toMilliseconds(long, TimeUnit) - Static method in class com.blibli.oss.common.helper.DateHelper
Converts input to milliseconds with respect to the given unit.
toSet(T...) - Static method in class com.blibli.oss.common.helper.CollectionHelper
Converts the given array of elements of type T to a new instance of HashSet of the same type.
toString(Date, String) - Static method in class com.blibli.oss.common.helper.DateHelper
Returns string representation of the given date and formats it according to the given pattern.
toUpperCase(String) - Static method in class com.blibli.oss.common.helper.CommonHelper
Shortens null validation on a String before invoking String.toUpperCase().

V

valueOf(String, Class<E>) - Static method in class com.blibli.oss.common.helper.CommonHelper
Returns Enum object of the given string s.
valueOf(String) - Static method in enum com.blibli.oss.common.helper.constants.Comparator
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.blibli.oss.common.helper.constants.TimeComparator
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.blibli.oss.common.helper.constants.TimeUnit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.blibli.oss.common.helper.NumberHelper.ParseMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.blibli.oss.common.helper.constants.Comparator
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.blibli.oss.common.helper.constants.TimeComparator
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.blibli.oss.common.helper.constants.TimeUnit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.blibli.oss.common.helper.NumberHelper.ParseMode
Returns an array containing the constants of this enum type, in the order they are declared.
A C D F G I M N P S T V 
Skip navigation links

Copyright © 2018. All rights reserved.