net.sf.uadetector.internal.data.domain
Class BrowserType
java.lang.Object
net.sf.uadetector.internal.data.domain.BrowserType
- All Implemented Interfaces:
- java.io.Serializable, Identifiable
@Immutable
public final class BrowserType
- extends java.lang.Object
- implements Identifiable, java.io.Serializable
The BrowserType class represents the type of a browser.
A BrowserType object is immutable, their values cannot be changed after creation.
- Author:
- André Rouél
- See Also:
- Serialized Form
|
Constructor Summary |
BrowserType(int id,
java.lang.String name)
|
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
int |
getId()
Gets the identification number (ID) of a browser type. |
java.lang.String |
getName()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BrowserType
public BrowserType(@Nonnegative
int id,
@Nonnull
java.lang.String name)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getId
public int getId()
- Gets the identification number (ID) of a browser type.
- Specified by:
getId in interface Identifiable
- Returns:
- identification number (ID) of a browser type
getName
public java.lang.String getName()
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.