Class ConstantSet

All Implemented Interfaces:
Iterable<Constant>, Collection<Constant>, Set<Constant>

@Deprecated public class ConstantSet extends AbstractSet<Constant>
Deprecated.
Provides forward and reverse lookup for platform constants
  • Field Details

  • Constructor Details

    • ConstantSet

      private ConstantSet(ConstantSet constants)
      Deprecated.
      Creates a new instance of ConstantSet
      Parameters:
      constants - The JNR constants to lookup real values in
  • Method Details

    • getConstantSet

      public static ConstantSet getConstantSet(String name)
      Deprecated.
      Gets a ConstantSet
      Parameters:
      name - The name of the constant set to get.
      Returns:
      A ConstantSet.
    • getConstant

      public Constant getConstant(String name)
      Deprecated.
      Gets the constant for a name.
      Parameters:
      name - The name of the system constant (e.g. "EINVAL").
      Returns:
      A Constant instance.
    • getConstant

      public Constant getConstant(int value)
      Deprecated.
      Gets the constant for a name.
      Parameters:
      value - The name of the system constant (e.g. "EINVAL").
      Returns:
      A Constant instance.
    • getValue

      public int getValue(String name)
      Deprecated.
      Gets the integer value of a platform constant.
      Parameters:
      name - The name of the platform constant to look up (e.g. "EINVAL").
      Returns:
      The integer value of the constant.
    • getName

      public String getName(int value)
      Deprecated.
      Gets the name of a platform constant value.
      Parameters:
      value - The integer value to look up.
      Returns:
      The name of the constant.
    • minValue

      public long minValue()
      Deprecated.
    • maxValue

      public long maxValue()
      Deprecated.
    • iterator

      public Iterator<Constant> iterator()
      Deprecated.
      Specified by:
      iterator in interface Collection<Constant>
      Specified by:
      iterator in interface Iterable<Constant>
      Specified by:
      iterator in interface Set<Constant>
      Specified by:
      iterator in class AbstractCollection<Constant>
    • size

      public int size()
      Deprecated.
      Specified by:
      size in interface Collection<Constant>
      Specified by:
      size in interface Set<Constant>
      Specified by:
      size in class AbstractCollection<Constant>
    • contains

      public boolean contains(Object o)
      Deprecated.
      Specified by:
      contains in interface Collection<Constant>
      Specified by:
      contains in interface Set<Constant>
      Overrides:
      contains in class AbstractCollection<Constant>
    • main

      public static void main(String[] args)
      Deprecated.