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.
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>devtools</artifactId>
<version>2.0.5</version>
</dependency>
Jdk1.8 (or later)
devtools-lang
devtools-objectpool
devtools-cron4j
devtools-beans-streaming
devtools-db4j
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
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>devtools-lang</artifactId>
<version>2.0.5</version>
</dependency>
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
devtools-objectpool
is a high performance implementation of object pool, including a generic object pool and jdbc connection pool.
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>devtools-objectpool</artifactId>
<version>2.0.5</version>
</dependency>
- ObjectPool
- ObjectFactory
- Jdk14ObjectPool
- GenericObjectPool
- ConnectionPool
- GenericDataSource
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
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>devtools-cron4j</artifactId>
<version>2.0.5</version>
</dependency>
- CronExpression
- TaskExecutor
- ThreadPoolTaskExecutor
- TimerTaskExecutor
- ClockTaskExecutor
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#)
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>devtools-beans-streaming</artifactId>
<version>2.0.5</version>
</dependency>
- Selector
- Restriction
- Group
- Sorter
- BeanSorter
devtools-db4j
is a simple and practical JDBC tool library, which provides varied high level API to operation database, thereby increasing developing efficiency
<dependency>
<groupId>com.github.paganini2008</groupId>
<artifactId>devtools-db4j</artifactId>
<version>2.0.5</version>
</dependency>
- SqlPlus
- SqlRunner
- ParsedSqlRunner
- TypeHandler
- TypeHandlerRegistry
- ResultSetExtractor
- RowMapper