public interface DoubleFluent<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>> extends org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value,BaseFluent,TheFluent,This>, ComparableFluent<Double,Value,BaseFluent,TheFluent,This>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DoubleFluent.AndChain<Value extends Double,TheFluent,This extends DoubleFluent.AndChain<Value,TheFluent,This>> |
static class |
DoubleFluent.Assert<Value extends Double> |
static interface |
DoubleFluent.OrChain<Value extends Double,TheFluent,This extends DoubleFluent.OrChain<Value,TheFluent,This>> |
static class |
DoubleFluent.Step<Value extends Double,TheFluent,This extends DoubleFluent.Step<Value,TheFluent,This>> |
| Modifier and Type | Method and Description |
|---|---|
DoubleFluent.AndChain<Value,TheFluent,?> |
all() |
DoubleFluent.AndChain<Value,TheFluent,?> |
both() |
DoubleFluent.AndChain<Value,TheFluent,?> |
both(org.hamcrest.Matcher<? super Value> matcher) |
default TheFluent |
closeTo(double operand,
double error)
Creates a matcher of
Doubles that matches when an examined double is equal
to the specified operand, within a range of +/- error. |
DoubleFluent.OrChain<Value,TheFluent,?> |
either() |
DoubleFluent.OrChain<Value,TheFluent,?> |
either(org.hamcrest.Matcher<? super Value> matcher) |
comparesEqualTo, greaterThan, greaterThanOrEqualTo, lessThan, lessThanOrEqualToget, get, hasToString, hasToString, isIn, isIn, isOneOf, notNullValue, nullValue, sameInstance, theInstance__, __, __, allOf, anyOf, as, as, equalTo, has, has, has, has, hasNot, hasNot, hasNot, hasNot, hasType, is, is, is, isA, isNot, isNot, isNot, noneOf, not, not, not, not, notdefault TheFluent closeTo(double operand, double error)
Doubles that matches when an examined double is equal
to the specified operand, within a range of +/- error.
For example:
assertThat(1.03, is(closeTo(1.0, 0.03)))
operand - the expected value of matching doubleserror - the delta (+/-) within which matches will be allowedIsCloseTo.closeTo(double,double)DoubleFluent.OrChain<Value,TheFluent,?> either()
either in interface ComparableFluent<Double,Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends Double,BaseFluent>either in interface ObjectFluent<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>DoubleFluent.OrChain<Value,TheFluent,?> either(org.hamcrest.Matcher<? super Value> matcher)
either in interface ComparableFluent<Double,Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends Double,BaseFluent>either in interface ObjectFluent<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>DoubleFluent.AndChain<Value,TheFluent,?> both()
both in interface ComparableFluent<Double,Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends Double,BaseFluent>both in interface ObjectFluent<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>DoubleFluent.AndChain<Value,TheFluent,?> both(org.hamcrest.Matcher<? super Value> matcher)
both in interface ComparableFluent<Double,Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends Double,BaseFluent>both in interface ObjectFluent<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>DoubleFluent.AndChain<Value,TheFluent,?> all()
all in interface ComparableFluent<Double,Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>all in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>all in interface org.cthul.matchers.fluent.FluentStep<Value extends Double,BaseFluent>all in interface ObjectFluent<Value extends Double,BaseFluent,TheFluent extends BaseFluent,This extends DoubleFluent<Value,BaseFluent,TheFluent,This>>Copyright © 2015. All Rights Reserved.