net.sf.uadetector.internal.data.domain
Class Device

java.lang.Object
  extended by 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

Nested Class Summary
static class Device.Builder
           
 
Constructor Summary
Device(java.lang.String name, int id, ReadableDeviceCategory.Category category, java.lang.String icon, java.lang.String infoUrl, java.util.SortedSet<DevicePattern> patterns)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ReadableDeviceCategory.Category getCategory()
           
 java.lang.String getIcon()
           
 int getId()
          Returns the identifier (ID) of an instance.
 java.lang.String getInfoUrl()
           
 java.lang.String getName()
           
 java.util.SortedSet<DevicePattern> getPatterns()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.