Giter Club home page Giter Club logo

java-ex's Introduction

Java-EX

Build Status Code Coverage Code Quality Maven Central

Java Common Extension

Get it

<dependency>
    <groupId>com.github.XDean</groupId>
    <artifactId>Java-EX</artifactId>
    <version>0.1.1</version>
</dependency>

Features

Lang

  • 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.

Reflect

  • 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)

Collection

  • Either. Left or right, that is a question.
  • Pair. Left and right, that is no question.
  • IntList. Operate int array easier. (not java.util.List)
  • TreeNode. A powerful tree implementation. (not dependable yet)
  • Traverse. Traverse any tree structure. Provide default PreOrder/PostOrder/BreadthFirst traverser.

Easy Programming / Function Programming

  • 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:
    • Try
    • If
    • TaskUtil

RxJava Extension

  • From java functions to Rx functions.
  • Use RxNullable to handle null value easily! (RxJava2 don't support null value more and use Irrelevant or Optional everywhere is so ugly).
  • From Observable/Flowable to Iterator.
  • RandomOperator. Easy to shuffle.

Other many utilities

See the code!

java-ex's People

Contributors

dependabot[bot] avatar xdean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

java-ex's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.