Class JWNL.OS

  • Enclosing class:
    JWNL

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String _name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OS​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.String test)
      Returns true if testOS is a version of this OS.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _name

        private java.lang.String _name
    • Constructor Detail

      • OS

        protected OS​(java.lang.String name)
    • Method Detail

      • toString

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

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