class DittoDuration implements CharSequence {

    static DittoDuration of(final Duration duration) {
        checkNotNull(duration, "duration");
        checkArgument(duration, d -> !d.isNegative(),
                () -> MessageFormat.format("The duration must not be negative but was <{0}>!", duration));

        return new DittoDuration(duration.toMillis(), DittoTimeUnit.MILLISECONDS);
    }

    private  DittoDuration(final long amount, final DittoTimeUnit dittoTimeUnit);

}