public final class JFPTimeComponentSpecDivisible extends Object implements JFPTimeComponentSpecType
matches(int)
function returns true
iff
x % c == 0
where x
is the incoming value and
c
is the component value.Constructor and Description |
---|
JFPTimeComponentSpecDivisible(int in_value) |
Modifier and Type | Method and Description |
---|---|
<A,E extends Exception> |
acceptTimeComponent(JFPTimeComponentSpecVisitorType<A,E> v)
Accept a generic time component visitor.
|
boolean |
matches(int x) |
String |
toString() |
public JFPTimeComponentSpecDivisible(int in_value)
in_value
- The value.public <A,E extends Exception> A acceptTimeComponent(JFPTimeComponentSpecVisitorType<A,E> v) throws JFPException, E extends Exception
JFPTimeComponentSpecType
acceptTimeComponent
in interface JFPTimeComponentSpecType
A
- The type of returned values.E
- The type of raised exceptions.v
- The visitor.JFPException
- If the visitor raises JFPException
.E
- If the visitor raises E
.E extends Exception
public boolean matches(int x)
matches
in interface JFPTimeComponentSpecType
x
- The incoming value.true
if the spec matches x
.Copyright © 2015 <code@io7m.com> http://io7m.com