java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn1.Size
All Implemented Interfaces:
Fn1<Iterable<?>,Long>, Applicative<Long,Fn1<Iterable<?>,?>>, Cartesian<Iterable<?>,Long,Fn1<?,?>>, Cocartesian<Iterable<?>,Long,Fn1<?,?>>, Contravariant<Iterable<?>,Profunctor<?,Long,Fn1<?,?>>>, Functor<Long,Fn1<Iterable<?>,?>>, Profunctor<Iterable<?>,Long,Fn1<?,?>>, Monad<Long,Fn1<Iterable<?>,?>>, MonadReader<Iterable<?>,Long,Fn1<Iterable<?>,?>>, MonadRec<Long,Fn1<Iterable<?>,?>>, MonadWriter<Iterable<?>,Long,Fn1<Iterable<?>,?>>

public final class Size extends Object implements Fn1<Iterable<?>,Long>
  • Field Details

    • INSTANCE

      private static final Size INSTANCE
  • Constructor Details

    • Size

      private Size()
  • Method Details

    • checkedApply

      public Long checkedApply(Iterable<?> iterable)
      Description copied from interface: Fn1
      Invoke this function with the given argument, potentially throwing any Throwable.
      Specified by:
      checkedApply in interface Fn1<Iterable<?>,Long>
      Parameters:
      iterable - the argument
      Returns:
      the result of the function application
    • size

      public static Size size()
    • size

      public static Long size(Iterable<?> iterable)