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

java.lang.Object
  extended by net.sf.uadetector.internal.data.domain.Robot
All Implemented Interfaces:
java.io.Serializable, Identifiable

@Immutable
public final class Robot
extends java.lang.Object
implements Identifiable, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class Robot.Builder
           
 
Field Summary
static java.lang.String TYPENAME
          Default type name to support the classification against corresponding enum later
 
Constructor Summary
Robot(int id, java.lang.String name, UserAgentFamily family, java.lang.String familyName, java.lang.String infoUrl, java.lang.String producer, java.lang.String producerUrl, java.lang.String userAgentString, java.lang.String icon)
           
 
Method Summary
 void copyTo(UserAgent.Builder builder)
           
 boolean equals(java.lang.Object obj)
           
 UserAgentFamily getFamily()
           
 java.lang.String getFamilyName()
           
 java.lang.String getIcon()
           
 int getId()
          Returns the identifier (ID) of an instance.
 java.lang.String getInfoUrl()
           
 java.lang.String getName()
           
 java.lang.String getProducer()
           
 java.lang.String getProducerUrl()
           
 java.lang.String getUserAgentString()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPENAME

public static final java.lang.String TYPENAME
Default type name to support the classification against corresponding enum later

See Also:
Constant Field Values
Constructor Detail

Robot

public Robot(@Nonnegative
             int id,
             @Nonnull
             java.lang.String name,
             @Nonnull
             UserAgentFamily family,
             @Nonnull
             java.lang.String familyName,
             @Nonnull
             java.lang.String infoUrl,
             @Nonnull
             java.lang.String producer,
             @Nonnull
             java.lang.String producerUrl,
             @Nonnull
             java.lang.String userAgentString,
             @Nonnull
             java.lang.String icon)
Method Detail

copyTo

public void copyTo(@Nonnull
                   UserAgent.Builder builder)

equals

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

getFamily

@Nonnull
public UserAgentFamily getFamily()

getFamilyName

@Nonnull
public java.lang.String getFamilyName()

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()

getProducer

@Nonnull
public java.lang.String getProducer()

getProducerUrl

@Nonnull
public java.lang.String getProducerUrl()

getUserAgentString

@Nonnull
public java.lang.String getUserAgentString()

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.