Giter Site home page Giter Site logo

paganini2008 / devtools Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 2.93 MB

A Java basic tool library, which provides a large amounts of useful and cool utility methods and APIs to optimize your code, making your code more efficient and elegant.

License: Apache License 2.0

Java 100.00%
java javacore utilities

devtools's Introduction

Devtools Series

A Java basic tool library, which provides a large amounts of useful and cool utility methods and APIs to optimize your code, making your code more efficient and elegant.

Install

<dependency>
	 <groupId>com.github.paganini2008</groupId>
	 <artifactId>devtools</artifactId>
	 <version>2.0.5</version>
</dependency>

Compatibility

Jdk1.8 (or later)

Modules

  • devtools-lang
  • devtools-objectpool
  • devtools-cron4j
  • devtools-beans-streaming
  • devtools-db4j

1. devtools-lang

devtools-lang provides enrich utility method to manipulate Java core classes. It optimize operations about Basic data type, Collection, Date, IO, Reflection and other class libraries. It also provides high level APIs to do programming about Multithreading, JDBC, Logger .etc, which can help developer decrease repeat basic code and focus on business logical developing, making project code have more readability and maintainability

Install

<dependency>
    <groupId>com.github.paganini2008</groupId>
    <artifactId>devtools-lang</artifactId>
    <version>2.0.5</version>
</dependency>

Core API

Utility class for java.lang.*

  • StringUtils
  • ObjectUtils
  • ArrayUtils
  • NumericUtils
  • CharsetUtils
  • ClassUtils

Utility class for primitive data types

  • Booleans
  • Chars
  • Bytes
  • Shorts
  • Ints
  • Longs
  • Floats
  • Doubles

Utility class for mathematics

  • BigDecimalUtils
  • BigIntegerUtils

Utility class for java.lang.Random

  • RandomUtils
  • RandomStringUtils
  • RandomDateUtils

Utility class for java.util.Date

  • CalendarUtils
  • DateUtils
  • LocalDateUtils
  • LocalDateTimeUtils
  • LocalTimeUtils

Utility class for java.util.collection

  • CollectionUtils
  • ListUtils
  • SetUtils
  • MapUtils
  • LruMap
  • LruList
  • LruSet
  • MultiDequeMap
  • MultiKeyMap
  • MultiListMap
  • MultiMappedMap
  • MultiSetMap
  • CaseInsensitiveMap
  • CamelCaseInsensitiveMap

Utility class for java.io.*

  • IOUtils
  • FileUtils
  • PathUtils
  • TreeUtils
  • PropertiesUtils
  • ResourceUtils
  • ImageUtils
  • SerializationUtils
  • RecursiveDirectoryWalker
  • ForkJoinDirectoryWalker
  • FileMonitor
  • FileComparator
  • LogicalFileFilter

Utility class for java.lang.Thread

  • ExecutorUtils
  • ThreadsUtils
  • Clock
  • GenericThreadPool
  • Jdk14ThreadPool
  • ConcurrentTimer
  • ThreadFactoryBuilder
  • AtomicIntegerSequence
  • AtomicLongSequence
  • Latch

Utility class for java.lang.reflect.*

  • ConstructorUtils
  • FieldUtils
  • MethodUtils
  • BeanUtils
  • PropertyUtils
  • EqualsBuilder
  • HashCodeBuilder
  • ToStringBuilder

Utility class for data type conversion operations

  • ConvertUtils
  • StandardTypeConverter

Utility class for java.sql.*

  • JdbcUtils
  • ResultSetSlice
  • ConnectionFactory
  • DataSourceFactory
  • PageableQuery
  • Cursor
  • JdbcDumpTemplate

Utility class for java.util.logging.*

  • Log
  • LogFactory

2. devtools-objectpool

devtools-objectpool is a high performance implementation of object pool, including a generic object pool and jdbc connection pool.

Install

<dependency>
   <groupId>com.github.paganini2008</groupId>
   <artifactId>devtools-objectpool</artifactId>
   <version>2.0.5</version>
</dependency>

Core API

  • ObjectPool
  • ObjectFactory
  • Jdk14ObjectPool
  • GenericObjectPool
  • ConnectionPool
  • GenericDataSource

3. devtools-cron4j

devtools-cron4j is a small and practical Java scheduling toolkit that provides:

  • Defining cron expressions by object-oriented way
  • Providing strong cron expression parser
  • Executing job class at a certain time by multiple provided TaskExecutor
  • Easily embedding any system in a lightweight way without relying on external components

Install

<dependency>
    <groupId>com.github.paganini2008</groupId>
    <artifactId>devtools-cron4j</artifactId>
    <version>2.0.5</version>
</dependency>

Core API

  • CronExpression
  • TaskExecutor
  • ThreadPoolTaskExecutor
  • TimerTaskExecutor
  • ClockTaskExecutor

4. devtools-beans-streaming

devtools-beans-streaming provide a approach like SQL query to tackle a Java object list. For example, searching specific attribute value, counting or aggregating some objects by attribute value (Similar to LINQ in C#)

Install

<dependency>
	<groupId>com.github.paganini2008</groupId>
	<artifactId>devtools-beans-streaming</artifactId>
	<version>2.0.5</version>
</dependency>

Core API

  • Selector
  • Restriction
  • Group
  • Sorter
  • BeanSorter

5. devtools-db4j

devtools-db4j is a simple and practical JDBC tool library, which provides varied high level API to operation database, thereby increasing developing efficiency

Install

<dependency>
	<groupId>com.github.paganini2008</groupId>
	<artifactId>devtools-db4j</artifactId>
	<version>2.0.5</version>
</dependency>

Core API

  • SqlPlus
  • SqlRunner
  • ParsedSqlRunner
  • TypeHandler
  • TypeHandlerRegistry
  • ResultSetExtractor
  • RowMapper

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.