Top Description Fields Constructors Methods
org.assertj.core.internal

public Class Integers

extends Numbers<Integer>
implements WholeNumbers<Integer>
Class Inheritance
All Implemented Interfaces
org.assertj.core.internal.WholeNumbers
Imports
org.assertj.core.util.VisibleForTesting

Reusable assertions for Integers.
Authors
Drummond Dawson, Alex Ruiz, Joel Costigliola, Cal027

Field Summary

Modifier and TypeField and Description
private static final Integers

Constructor Summary

AccessConstructor and Description
pack-priv
public
Integers(ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
protected Integer
public static Integers

Returns:

the singleton instance of this class based on StandardComparisonStrategy.
instance
()

Returns the singleton instance of this class based on StandardComparisonStrategy.

public boolean
protected boolean
protected Integer
protected Integer
Inherited from org.assertj.core.internal.Numbers:
areEqualassertIsBetweenassertIsCloseToassertIsCloseToPercentageassertIsNegativeassertIsNotCloseToassertIsNotCloseToPercentageassertIsNotNegativeassertIsNotPositiveassertIsNotZeroassertIsOneassertIsPositiveassertIsStrictlyBetweenassertIsZeroisGreaterThanOrEqualTo

Field Detail

INSTANCEback to summary
private static final Integers INSTANCE

Constructor Detail

Integersback to summary
pack-priv Integers()
Annotations
@VisibleForTesting
Integersback to summary
public Integers(ComparisonStrategy comparisonStrategy)

Method Detail

absDiffback to summary
protected Integer absDiff(Integer actual, Integer other)

Implements abstract org.assertj.core.internal.Numbers.absDiff.

Annotations
@Override
instanceback to summary
public static Integers instance()

Returns the singleton instance of this class based on StandardComparisonStrategy.

Returns:Integers

the singleton instance of this class based on StandardComparisonStrategy.

isEvenback to summary
public boolean isEven(Integer number)

Implements org.assertj.core.internal.WholeNumbers.isEven.

Annotations
@Override
isGreaterThanback to summary
protected boolean isGreaterThan(Integer value, Integer other)

Implements abstract org.assertj.core.internal.Numbers.isGreaterThan.

Annotations
@Override
oneback to summary
protected Integer one()

Implements abstract org.assertj.core.internal.Numbers.one.

Annotations
@Override
zeroback to summary
protected Integer zero()

Implements abstract org.assertj.core.internal.Numbers.zero.

Annotations
@Override