Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.14 KB

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.