GithubHelp home page GithubHelp logo

thrice's Introduction

Thrice

Once is chance; twice is coincidence; thrice is a pattern.

If you've needed a piece of code three times or more, it may be worth putting it into a library. Thrice is a collection of Java classes for which its author has found a need on three or more occasions.

Contents

  1. Release Notes
  2. Documentation
  3. Availability

Release Notes

version 3.8

  • PollableFuture::pollNow added.
  • PollableCompletableFuture extracted from PollableFuture, is now a subclass of CompletableFuture.
  • PollableFuture::DelegatingPollableFuture refactored.

version 3.7

  • ArrayListSequence added to collection package.
  • Sequences.areEqual() and Sequences.upCast() added.

version 3.6

  • ByteArrayBuilder, ByteArrayConsumer, and ByteArrayFunction added to util package.
  • DevNullOutputStream and PassThroughOutputStream added to new io package.

version 3.5

  • Primitive specializations of Sequence added.
  • PrimitiveIterators factory class for java.util.PrimitiveIterator implementations added.
  • AlphaCodes and Nothing added to util package.
  • Numbers.requireRangeWithinBounds() added.
  • Methods with return values that may be null depending on the context are no longer annotated with javax.annotation.Nullable. Some tools and IDEs no longer use that annotation in its original sense, but as an equivalent to javax.annotation.CheckForNull, which may cause false NullPointerException warnings.

version 3.4

  • GetByteAtFunction, PutByteAtFunction, and Utf8 added to util package.

version 3.3

  • PollableFuture added to concurrent package.
  • GetCharAtFunction, PutCharAtFunction, and TimeSource added to util package.
  • Ascci.isAsciiHexDigit() added.
  • Strings.bytesToCompactHexString() added.
  • Overloaded Strings.asString() without default value argument added.
  • formatInt() and formatLong() added to Numbers.
  • Overloaded Numbers.requireNonNegative() for all primitive number types added.
  • singletonIterator(), arrayIterator(), and sequenceIterator() added to Iterators.
  • Sequence implements Iterable.
  • Build related tools and libraries upgraded to the latest versions.

version 3.2

  • Numbers.countDigits() added.
  • Build related tools and libraries upgraded to the latest versions.

version 3.1

  • Thrice is packaged as a modular jar file. The classes in the jar file are still targeted for Java 8.

version 3.0

  • First official release. Previous versions were semi-official and not generally available.

Documentation

Building

Thrice must be built with JDK 9 or later (but the classes are targeted for Java 8).

The command

./gradlew build

or an equivalent should do the trick.

Using

Thrice requires Java 8 or later. The library is packaged in a modular jar file that contains the module org.myire.thrice, which exports all packages in the project and requires no other modules.

The rest is in the JavaDocs.

Availability

Thrice can be found at Maven Central with the group ID org.myire and the artifact ID thrice.

thrice's People

Contributors

handmadecode avatar

Watchers

 avatar

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.