List of usage examples for java.lang Module Module
Module(ClassLoader loader)
From source file:org.op4j.functions.FnInteger.java
/** * <p>//from w w w . j av a2s.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<Integer, Integer> module(int module) { return new Module(BigInteger.valueOf(Integer.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>// w w 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<Short, Short> module(long module) { return new Module(BigInteger.valueOf(Long.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnLong.java
/** * <p>/*from w ww . j a v 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(Byte module) { return new Module(BigInteger.valueOf(module.longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>/*from w w w .java2 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(Byte module) { return new Module(BigInteger.valueOf(module.longValue())); }
From source file:org.op4j.functions.FnInteger.java
/** * <p>/* w w w.ja v 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<Integer, Integer> module(long module) { return new Module(BigInteger.valueOf(Long.valueOf(module).longValue())); }
From source file:org.op4j.functions.FnLong.java
/** * <p>/*from w w w . j ava 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(module.longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>/*from w w w . j a va 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(module.longValue())); }
From source file:org.op4j.functions.FnInteger.java
/** * <p>//w w w . j a v a 2 s .com * 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(module.longValue())); }
From source file:org.op4j.functions.FnLong.java
/** * <p>/*from ww w. j a v a 2s .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(Integer module) { return new Module(BigInteger.valueOf(module.longValue())); }
From source file:org.op4j.functions.FnShort.java
/** * <p>/* www. jav 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(Integer module) { return new Module(BigInteger.valueOf(module.longValue())); }