Spock is a testing and specification framework written in Groovy. Supports sneaky throws.Ī tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead.Ī library that implements and proposes a common approach for expressing errors in REST API.Ī small collection of Stream utilities, such as Streamable interface (useful when you want to stream repeatedly).Ī DSL for writing powerful, maintainable tests for RESTful APIs.Ī type-safe HTTP client for Android and Java. Has useful classes such as Maybe.Ī library for dealing with checked exceptions in lambdas. My favorite alternative to Hibernate.Ī simple, intuitive, and fluent wrapper over Java Reflection API.Īn extensible Java library to enable complete request and response logging for different client- and server-side technologies.Ī small Java 8 utilities library that complements Guava. My favorite alternative to Spring MVC.Īn in-memory file system for Java, super useful for unit testing, because you don't want to mock the file system.Ī fluent API for typesafe SQL query construction and execution. It's more flexible than Google's AutoValue and Lombok.Ī simple web framework for Java and Kotlin. Immutables generates simple, safe, and consistent value objects (data classes). Useful if you want to obfuscate and expose (non-critical) numbers via API. Hashids is a small open-source library that generates short, unique, non-sequential ids from numbers. Works well with Google's Auto Factory.ĮA Async adds async awaits to in the JVM and allows programmers to write asynchronous code in a sequential fashion.Ī lightweight, zero-dependency library for handling failures in Java 8+, with a concise API for handling everyday use cases and the flexibility to handle everything else.Ī library for generating fake data, useful when you're developing a new project and need some pretty data for showcase.Įvolve your database schema easily and reliably across all your instances.Ī library for automatic generation of META-INF metadata for any class annotated with avoiding typos, providing resistance to errors from refactoring.Ī set of common libraries for Java, developed and maintained by Google.Ī set of testing utilities for collections, equals(), hashCode(), toString() etc. Some of them are well-known others are not so popular, yet very useful at work.Ī simple and extensible library for checking the architecture of your Java code via tests.Ī library for writing fluent and rich assertions in Java tests.Ī DSL that allows you to express expectations of an asynchronous system in a concise and easy to read manner.Ī library for creating and modifying Java classes during the runtime.Ī high performance, near optimal caching library based on Java 8 and a faster replacement of Guava Cache.Ī compile-time dependency injection library with low or zero runtime overload. I pulled a list of 36 Java libraries that I like and use daily. A code snippet which demonstrates this is as follows − if (c.About me My masterclass My conference Java libraries I likeĮveryone knows Spring and Hibernate, but there are other libraries and frameworks that are worth your attention. The length of the array is obtained using the Array.getLength() method. Then the array type is obtained using getComponentType() method. The array length can be obtained in int form using the method .getLength().Ī program that demonstrates this is given as follows − Example This method returns the class that represents the component type of the array. The array type can be checked using the () method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |