Class JWNL.OS

java.lang.Object
net.didion.jwnl.JWNL.OS
Enclosing class:
JWNL

public static final class JWNL.OS extends Object
Used to create constants that represent the major categories of operating systems.
  • Field Details

    • _name

      private String _name
  • Constructor Details

    • OS

      protected OS(String name)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • matches

      public boolean matches(String test)
      Returns true if testOS is a version of this OS. For example, calling WINDOWS.matches("Windows 95") returns true.