java.lang.Object
xyz.cofe.num.AtomicIntegerNumbers
- All Implemented Interfaces:
Numbers<java.util.concurrent.atomic.AtomicInteger>
public class AtomicIntegerNumbers extends java.lang.Object implements Numbers<java.util.concurrent.atomic.AtomicInteger>
Математические операции над AtomicInteger
- Author:
- Kamnev Georgiy
-
Constructor Summary
Constructors Constructor Description AtomicIntegerNumbers() -
Method Summary
Modifier and Type Method Description java.util.concurrent.atomic.AtomicIntegeradd(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Сложение чиселjava.util.concurrent.atomic.AtomicIntegerdiv(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Деление чиселbooleanequals(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Сравнивает два числа на равностьbooleaninfinity(java.util.concurrent.atomic.AtomicInteger n)Проверяет что число является бесконечностьюbooleanless(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Сравннвает числаbooleanmore(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Сравннвает числаjava.util.concurrent.atomic.AtomicIntegermul(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Умножение чиселjava.util.concurrent.atomic.AtomicIntegernext(java.util.concurrent.atomic.AtomicInteger n)Возвращает следующее числоjava.util.concurrent.atomic.AtomicIntegerone()Возвращает единицуjava.util.concurrent.atomic.AtomicIntegerprev(java.util.concurrent.atomic.AtomicInteger n)Возвращает предыдущее числоjava.util.concurrent.atomic.AtomicIntegerremainder(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Остаток от деленияjava.util.concurrent.atomic.AtomicIntegersub(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Вычитание чиселbooleanundefined(java.util.concurrent.atomic.AtomicInteger n)Проверяет что число не определенноjava.util.concurrent.atomic.AtomicIntegerzero()Возвращает нулевое числоbooleanzero(java.util.concurrent.atomic.AtomicInteger n)Проверяет что число является нулем
-
Constructor Details
-
AtomicIntegerNumbers
public AtomicIntegerNumbers()
-
-
Method Details
-
zero
public java.util.concurrent.atomic.AtomicInteger zero()Description copied from interface:NumbersВозвращает нулевое число -
one
public java.util.concurrent.atomic.AtomicInteger one()Description copied from interface:NumbersВозвращает единицу -
zero
public boolean zero(java.util.concurrent.atomic.AtomicInteger n)Description copied from interface:NumbersПроверяет что число является нулем -
undefined
public boolean undefined(java.util.concurrent.atomic.AtomicInteger n)Description copied from interface:NumbersПроверяет что число не определенно -
infinity
public boolean infinity(java.util.concurrent.atomic.AtomicInteger n)Description copied from interface:NumbersПроверяет что число является бесконечностью -
add
public java.util.concurrent.atomic.AtomicInteger add(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersСложение чисел -
sub
public java.util.concurrent.atomic.AtomicInteger sub(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersВычитание чисел -
mul
public java.util.concurrent.atomic.AtomicInteger mul(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersУмножение чисел -
div
public java.util.concurrent.atomic.AtomicInteger div(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersДеление чисел -
remainder
public java.util.concurrent.atomic.AtomicInteger remainder(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersОстаток от деления -
equals
public boolean equals(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersСравнивает два числа на равность -
more
public boolean more(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersСравннвает числа -
less
public boolean less(java.util.concurrent.atomic.AtomicInteger a, java.util.concurrent.atomic.AtomicInteger b)Description copied from interface:NumbersСравннвает числа -
next
public java.util.concurrent.atomic.AtomicInteger next(java.util.concurrent.atomic.AtomicInteger n)Description copied from interface:NumbersВозвращает следующее число -
prev
public java.util.concurrent.atomic.AtomicInteger prev(java.util.concurrent.atomic.AtomicInteger n)Description copied from interface:NumbersВозвращает предыдущее число
-