net.sf.uadetector
Class OperatingSystem

java.lang.Object
  extended by net.sf.uadetector.OperatingSystem
All Implemented Interfaces:
java.io.Serializable, ReadableOperatingSystem

public final class OperatingSystem
extends java.lang.Object
implements ReadableOperatingSystem, java.io.Serializable

OperatingSystem is an immutable entity that represents the informations about an operating system like Linux, Mac OS X or Windows.

Author:
André Rouél
See Also:
Serialized Form

Field Summary
static OperatingSystem EMPTY
           
 
Constructor Summary
OperatingSystem(OperatingSystemFamily family, java.lang.String familyName, java.lang.String icon, java.lang.String name, java.lang.String producer, java.lang.String producerUrl, java.lang.String url, VersionNumber versionNumber)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 OperatingSystemFamily getFamily()
          Gets the family of an operating system.
 java.lang.String getFamilyName()
          Gets the family name of an operating system.
 java.lang.String getIcon()
          Gets the icon name of an operating system.
 java.lang.String getName()
          Gets the name of an operating system.
 java.lang.String getProducer()
          Returns the manufacturer of an operating system.
 java.lang.String getProducerUrl()
          Returns the URL to the main website of the manufacturer of an operating system.
 java.lang.String getUrl()
          Returns the URL to the product or information page of an operating system.
 VersionNumber getVersionNumber()
          Gets the version number of an operating system.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final OperatingSystem EMPTY
Constructor Detail

OperatingSystem

public OperatingSystem(@Nonnull
                       OperatingSystemFamily family,
                       @Nonnull
                       java.lang.String familyName,
                       @Nonnull
                       java.lang.String icon,
                       @Nonnull
                       java.lang.String name,
                       @Nonnull
                       java.lang.String producer,
                       @Nonnull
                       java.lang.String producerUrl,
                       @Nonnull
                       java.lang.String url,
                       @Nonnull
                       VersionNumber versionNumber)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getFamily

public OperatingSystemFamily getFamily()
Description copied from interface: ReadableOperatingSystem
Gets the family of an operating system.

Specified by:
getFamily in interface ReadableOperatingSystem
Returns:
the family of an operating system

getFamilyName

public java.lang.String getFamilyName()
Description copied from interface: ReadableOperatingSystem
Gets the family name of an operating system.

Specified by:
getFamilyName in interface ReadableOperatingSystem
Returns:
the family of an operating system

getIcon

public java.lang.String getIcon()
Description copied from interface: ReadableOperatingSystem
Gets the icon name of an operating system.

Specified by:
getIcon in interface ReadableOperatingSystem
Returns:
the icon name of an operating system

getName

public java.lang.String getName()
Description copied from interface: ReadableOperatingSystem
Gets the name of an operating system.

Specified by:
getName in interface ReadableOperatingSystem
Returns:
the name of an operating system

getProducer

public java.lang.String getProducer()
Description copied from interface: ReadableOperatingSystem
Returns the manufacturer of an operating system.

Specified by:
getProducer in interface ReadableOperatingSystem
Returns:
the manufacturer

getProducerUrl

public java.lang.String getProducerUrl()
Description copied from interface: ReadableOperatingSystem
Returns the URL to the main website of the manufacturer of an operating system.

Specified by:
getProducerUrl in interface ReadableOperatingSystem
Returns:
the URL to the website of the manufacturer

getUrl

public java.lang.String getUrl()
Description copied from interface: ReadableOperatingSystem
Returns the URL to the product or information page of an operating system.

Specified by:
getUrl in interface ReadableOperatingSystem
Returns:
the URL to the product page

getVersionNumber

public VersionNumber getVersionNumber()
Description copied from interface: ReadableOperatingSystem
Gets the version number of an operating system.

Specified by:
getVersionNumber in interface ReadableOperatingSystem
Returns:
version number an operating system

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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


Copyright © 2011-2014. All Rights Reserved.