A Java type conversion framework.
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);
...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);
...- Java 1.6 or higher
- Gradle 1.6

