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

public Class Longs

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

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

Field Summary

Modifier and TypeField and Description
private static final Longs

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
protected Long
absDiff(Long actual, Long other)

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

public static Longs

Returns:

the singleton instance of this class.
instance
()

Returns the singleton instance of this class.

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

Field Detail

INSTANCEback to summary
private static final Longs INSTANCE

Constructor Detail

Longsback to summary
pack-priv Longs()
Annotations
@VisibleForTesting
Longsback to summary
public Longs(ComparisonStrategy comparisonStrategy)

Method Detail

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

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

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

Returns the singleton instance of this class.

Returns:Longs

the singleton instance of this class.

isEvenback to summary
public boolean isEven(Long number)

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

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

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

Annotations
@Override
oneback to summary
protected Long one()

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

Annotations
@Override
zeroback to summary
protected Long zero()

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

Annotations
@Override