Java Common Extension
<dependency>
<groupId>com.github.XDean</groupId>
<artifactId>Java-EX</artifactId>
<version>0.1.1</version>
</dependency>- Finalize support. Attach clean up tasks on any object. Free from
Object.finalize. - Size of object. Measure shallow and retained size of object or class by java code which is useful when debug.
- Add or change annotations on Class/Method/Field at runtime.
- Get explicit generic type of class or interface.
- Get caller (any depth in stack) information
- Get more information of class: getAll(Field/Method/Interface/SuperClass)s, getRoot(Field/Method)
Either. Left or right, that is a question.Pair. Left and right, that is no question.IntList. Operate int array easier. (notjava.util.List)TreeNode. A powerful tree implementation. (not dependable yet)Traverse. Traverse any tree structure. Provide default PreOrder/PostOrder/BreadthFirst traverser.
- Functions with throws.
- Ignore checked exception by
uncheck. - Change throw exception to return it.
- Cache everywhere like dynamic field.
- Let everything lambda and let lambda one line:
TryIfTaskUtil
- From java functions to Rx functions.
- Use
RxNullableto handle null value easily! (RxJava2 don't support null value more and useIrrelevantorOptionaleverywhere is so ugly). - From
Observable/FlowabletoIterator. RandomOperator. Easy to shuffle.
See the code!