Package xyz.cofe.num

Class AtomicLongNumbers

  • All Implemented Interfaces:
    Numbers<AtomicLong>

    public class AtomicLongNumbers
    extends Object
    implements Numbers<AtomicLong>
    Математические операции над AtomicLong
    Author:
    Kamnev Georgiy
    • Constructor Detail

      • AtomicLongNumbers

        public AtomicLongNumbers()
    • Method Detail

      • zero

        public AtomicLong zero()
        Description copied from interface: Numbers
        Возвращает нулевое число
        Specified by:
        zero in interface Numbers<AtomicLong>
        Returns:
        ноль
      • one

        public AtomicLong one()
        Description copied from interface: Numbers
        Возвращает единицу
        Specified by:
        one in interface Numbers<AtomicLong>
        Returns:
        единица
      • zero

        public boolean zero​(AtomicLong n)
        Description copied from interface: Numbers
        Проверяет что число является нулем
        Specified by:
        zero in interface Numbers<AtomicLong>
        Parameters:
        n - число
        Returns:
        true - число является нулем
      • undefined

        public boolean undefined​(AtomicLong n)
        Description copied from interface: Numbers
        Проверяет что число не определенно
        Specified by:
        undefined in interface Numbers<AtomicLong>
        Parameters:
        n - число
        Returns:
        true - число не определенно
      • infinity

        public boolean infinity​(AtomicLong n)
        Description copied from interface: Numbers
        Проверяет что число является бесконечностью
        Specified by:
        infinity in interface Numbers<AtomicLong>
        Parameters:
        n - число
        Returns:
        true - число является бесконечностью
      • equals

        public boolean equals​(AtomicLong a,
                              AtomicLong b)
        Description copied from interface: Numbers
        Сравнивает два числа на равность
        Specified by:
        equals in interface Numbers<AtomicLong>
        Parameters:
        a - число а
        b - число б
        Returns:
        true - числа равны
      • more

        public boolean more​(AtomicLong a,
                            AtomicLong b)
        Description copied from interface: Numbers
        Сравннвает числа
        Specified by:
        more in interface Numbers<AtomicLong>
        Parameters:
        a - число а
        b - число б
        Returns:
        true - число а больше б
      • less

        public boolean less​(AtomicLong a,
                            AtomicLong b)
        Description copied from interface: Numbers
        Сравннвает числа
        Specified by:
        less in interface Numbers<AtomicLong>
        Parameters:
        a - число а
        b - число б
        Returns:
        true - число а меньше б
      • next

        public AtomicLong next​(AtomicLong n)
        Description copied from interface: Numbers
        Возвращает следующее число
        Specified by:
        next in interface Numbers<AtomicLong>
        Parameters:
        n - число
        Returns:
        следующее число
      • prev

        public AtomicLong prev​(AtomicLong n)
        Description copied from interface: Numbers
        Возвращает предыдущее число
        Specified by:
        prev in interface Numbers<AtomicLong>
        Parameters:
        n - число
        Returns:
        предыдущее число