Package edu.jas.arith

Class ModIntegerRing

java.lang.Object
edu.jas.arith.ModIntegerRing
All Implemented Interfaces:
ModularRingFactory<ModInteger>, AbelianGroupFactory<ModInteger>, ElemFactory<ModInteger>, MonoidFactory<ModInteger>, RingFactory<ModInteger>, Serializable, Iterable<ModInteger>

public final class ModIntegerRing extends Object implements ModularRingFactory<ModInteger>, Iterable<ModInteger>
ModIntegerRing factory with RingFactory interface. Effectively immutable.
See Also:
  • Field Details

    • modul

      public final BigInteger modul
      Module part of the factory data structure.
    • random

      private static final Random random
    • isField

      private int isField
      Indicator if this ring is a field.
  • Constructor Details

    • ModIntegerRing

      public ModIntegerRing(BigInteger m)
      The constructor creates a ModIntegerRing object from a BigInteger object as module part.
      Parameters:
      m - math.BigInteger.
    • ModIntegerRing

      public ModIntegerRing(BigInteger m, boolean isField)
      The constructor creates a ModIntegerRing object from a BigInteger object as module part.
      Parameters:
      m - math.BigInteger.
      isField - indicator if m is prime.
    • ModIntegerRing

      public ModIntegerRing(long m)
      The constructor creates a ModIntegerRing object from a long as module part.
      Parameters:
      m - long.
    • ModIntegerRing

      public ModIntegerRing(long m, boolean isField)
      The constructor creates a ModIntegerRing object from a long as module part.
      Parameters:
      m - long.
      isField - indicator if m is prime.
    • ModIntegerRing

      public ModIntegerRing(String m)
      The constructor creates a ModIntegerRing object from a String object as module part.
      Parameters:
      m - String.
    • ModIntegerRing

      public ModIntegerRing(String m, boolean isField)
      The constructor creates a ModIntegerRing object from a String object as module part.
      Parameters:
      m - String.
      isField - indicator if m is prime.
  • Method Details