Skip to content

Flux is a fluent-interface type-conversion framework for the Java platform.

License

Notifications You must be signed in to change notification settings

codereligion/flux

Repository files navigation

Flux Capacitor Flux Build Status

A Java type conversion framework.

Quickstart

Creating the Capacitor:

    final Capacitor capacitor = Flux.createCapacitor(new PrimitivesBundle());
    final long value = capacitor.convert("12345").to(Long.class);
    // or
    final long value = capacitor.convert(null).tryTo(Long.class).or(0L);
    ...

Configuration

Features

When creating the Capacitor, you can pass in a FeatureSet, defining which features you want to enable:

    final FeatureSet features = Features.of(Feature.SILENT, Feature.COMPOSITION);
    final Capacitor capacitor = Flux.createCapacitor(features);
    ...

Bundles

Build Requirements

  • Java 1.6 or higher
  • Gradle 1.6

Attributions

Creative Commons License Flux Capacitor Icon by Flowdock Ltd is licensed under a Creative Commons Attribution 3.0 Unported License.

About

Flux is a fluent-interface type-conversion framework for the Java platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published