List of usage examples for java.lang Module Module
Module(ClassLoader loader)
From source file:org.op4j.functions.FnBigInteger.java
/** * <p>/*from w w w .ja va 2s . c om*/ * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<BigInteger, BigInteger> module(BigInteger module) { return new Module(module); }
From source file:org.op4j.functions.FnLong.java
/** * <p>/* w w w.ja va2s .c om*/ * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Long, Long> module(byte module) { return new Module(BigInteger.valueOf(Byte.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>//from w w w.j av a 2 s .c om * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Short, Short> module(byte module) { return new Module(BigInteger.valueOf(Byte.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnLong.java
/** * <p>//w ww . ja v a 2s.c o m * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Long, Long> module(short module) { return new Module(BigInteger.valueOf(Short.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnInteger.java
/** * <p>//ww w.ja v a2s. co m * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Integer, Integer> module(byte module) { return new Module(BigInteger.valueOf(Byte.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>//w w w .j av a 2 s. c o m * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Short, Short> module(short module) { return new Module(BigInteger.valueOf(Short.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnLong.java
/** * <p>// ww w .j a v a 2 s. c o m * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Long, Long> module(int module) { return new Module(BigInteger.valueOf(Integer.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnInteger.java
/** * <p>// ww w . j a va 2 s . c om * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Integer, Integer> module(short module) { return new Module(BigInteger.valueOf(Short.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>//from w w w . java 2 s. co m * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Short, Short> module(int module) { return new Module(BigInteger.valueOf(Integer.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnLong.java
/** * <p>//www.j av a 2 s . co m * It performs a module operation and returns the value * of (input mod module) which is always positive * (whereas remainder is not) * </p> * * @param module the module * @return the result of (input mod module) */ public final static Function<Long, Long> module(long module) { return new Module(BigInteger.valueOf(Long.valueOf(module).longValue())); }