net.sf.uadetector.internal.data.domain
Class Device
java.lang.Object
net.sf.uadetector.internal.data.domain.Device
- All Implemented Interfaces:
- java.io.Serializable, Identifiable
@Immutable
public final class Device
- extends java.lang.Object
- implements Identifiable, java.io.Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Device
public Device(@Nonnull
java.lang.String name,
@Nonnegative
int id,
@Nonnull
ReadableDeviceCategory.Category category,
@Nonnull
java.lang.String icon,
@Nonnull
java.lang.String infoUrl,
@Nonnull
java.util.SortedSet<DevicePattern> patterns)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getCategory
@Nonnull
public ReadableDeviceCategory.Category getCategory()
getIcon
@Nonnull
public java.lang.String getIcon()
getId
@Nonnegative
public int getId()
- Description copied from interface:
Identifiable
- Returns the identifier (ID) of an instance.
- Specified by:
getId in interface Identifiable
- Returns:
- numeric identifier
getInfoUrl
@Nonnull
public java.lang.String getInfoUrl()
getName
@Nonnull
public java.lang.String getName()
getPatterns
@Nonnull
public java.util.SortedSet<DevicePattern> getPatterns()
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.