Class AsExtensions

java.lang.Object
it.tidalwave.util.asexamples.AsExtensions

public class AsExtensions extends Object
Author:
Fabrizio Giudici
  • Constructor Details

    • AsExtensions

      public AsExtensions()
  • Method Details

    • as

      @Nonnull public static <T> T as(@Nonnull Object datum, @Nonnull Class<? extends T> type)
    • maybeAs

      @Nonnull public static <T> Optional<T> maybeAs(@Nonnull Object datum, @Nonnull Class<? extends T> type)
    • asMany

      @Nonnull public static <T> Collection<T> asMany(@Nonnull Object datum, @Nonnull Class<? extends T> roleClass)