@Test public void shouldInternStringValues() { final String value = new String(new char[]{'a', 'b'}); assertThat(StringTestyValue.of(value).get(), is( sameInstance(StringTestyValue.of("ab").get()))); }
@Nonnull public final T get() { return value; }
Value implements Cloneable { @Nonnull public final T get() { return value; } }
Value implements Cloneable { @Nonnull public final T get() { return value; } protected  Value(@Nonnull final T value); }
Value implements Cloneable { @Nonnull public final T get() { return value; } protected  Value(@Nonnull final T value); @Nonnull abstract Class<T> type(); @Nonnull final T get(); @Nonnull final W map(
            @Nonnull final Function<? super T, ? extends W> mapper); @SuppressWarnings({"CloneDoesntCallSuperClone", "unchecked"}) @Override final V clone(); @Override final String toString(); }
Value implements Cloneable { @Nonnull public final T get() { return value; } protected  Value(@Nonnull final T value); @Nonnull abstract Class<T> type(); @Nonnull final T get(); @Nonnull final W map(
            @Nonnull final Function<? super T, ? extends W> mapper); @SuppressWarnings({"CloneDoesntCallSuperClone", "unchecked"}) @Override final V clone(); @Override final String toString();  }