Class Size
- java.lang.Object
-
- com.jnape.palatable.lambda.functions.builtin.fn1.Size
-
- All Implemented Interfaces:
Fn1<java.lang.Iterable<?>,java.lang.Long>,Applicative<java.lang.Long,Fn1<java.lang.Iterable<?>,?>>,Cartesian<java.lang.Iterable<?>,java.lang.Long,Fn1<?,?>>,Cocartesian<java.lang.Iterable<?>,java.lang.Long,Fn1<?,?>>,Contravariant<java.lang.Iterable<?>,Profunctor<?,java.lang.Long,Fn1<?,?>>>,Functor<java.lang.Long,Fn1<java.lang.Iterable<?>,?>>,Profunctor<java.lang.Iterable<?>,java.lang.Long,Fn1<?,?>>,Monad<java.lang.Long,Fn1<java.lang.Iterable<?>,?>>,MonadReader<java.lang.Iterable<?>,java.lang.Long,Fn1<java.lang.Iterable<?>,?>>,MonadRec<java.lang.Long,Fn1<java.lang.Iterable<?>,?>>,MonadWriter<java.lang.Iterable<?>,java.lang.Long,Fn1<java.lang.Iterable<?>,?>>
public final class Size extends java.lang.Object implements Fn1<java.lang.Iterable<?>,java.lang.Long>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSize()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LongcheckedApply(java.lang.Iterable<?> iterable)Invoke this function with the given argument, potentially throwing anyThrowable.static Sizesize()static java.lang.Longsize(java.lang.Iterable<?> iterable)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
INSTANCE
private static final Size INSTANCE
-
-
Method Detail
-
checkedApply
public java.lang.Long checkedApply(java.lang.Iterable<?> iterable)
Description copied from interface:Fn1Invoke this function with the given argument, potentially throwing anyThrowable.- Specified by:
checkedApplyin interfaceFn1<java.lang.Iterable<?>,java.lang.Long>- Parameters:
iterable- the argument- Returns:
- the result of the function application
-
size
public static Size size()
-
size
public static java.lang.Long size(java.lang.Iterable<?> iterable)
-
-