net.fortytwo.ripple.libs.math
Class Ceil
java.lang.Object
net.fortytwo.ripple.model.PrimitiveStackMapping
net.fortytwo.ripple.libs.math.Ceil
- All Implemented Interfaces:
- Mapping<StackContext,StackContext,RippleException>, RippleValue, StackMapping
public class Ceil
- extends PrimitiveStackMapping
A primitive which consumes a number and produces the smallest integer value
which is greater than or equal to the number. Note: the produced value has
a type of xsd:integer, unlike Java's Math.ceil, which returns a double
value.
|
Constructor Summary |
Ceil()
|
| Methods inherited from class net.fortytwo.ripple.model.PrimitiveStackMapping |
arity, equals, getInverse, getMapping, getType, hashCode, isTransparent, printTo, setRdfEquivalent, toRDF, toString |
Ceil
public Ceil()
throws RippleException
- Throws:
RippleException
getIdentifiers
public String[] getIdentifiers()
- Specified by:
getIdentifiers in class PrimitiveStackMapping
getParameters
public PrimitiveStackMapping.Parameter[] getParameters()
- Specified by:
getParameters in class PrimitiveStackMapping
getComment
public String getComment()
- Specified by:
getComment in class PrimitiveStackMapping
- Returns:
- a comment about the primitive. May be null.
apply
public void apply(StackContext arg,
Sink<StackContext,RippleException> solutions)
throws RippleException
- Throws:
RippleException
Copyright © 2007-2011 fortytwo.net. All Rights Reserved.