net.sf.uadetector.internal.data.domain
Class BrowserOperatingSystemMapping.Builder

java.lang.Object
  extended by net.sf.uadetector.internal.data.domain.BrowserOperatingSystemMapping.Builder
Enclosing class:
BrowserOperatingSystemMapping

@NotThreadSafe
public static final class BrowserOperatingSystemMapping.Builder
extends java.lang.Object


Constructor Summary
BrowserOperatingSystemMapping.Builder()
           
 
Method Summary
 BrowserOperatingSystemMapping build()
          Build an instance of BrowserOperatingSystemMapping.
 int getBrowserId()
          Gets the identification number of a browser entry.
 int getOperatingSystemId()
          Gets the identification number of an operating system entry.
 BrowserOperatingSystemMapping.Builder setBrowserId(int browserId)
          Sets the identification number of a browser entry.
 BrowserOperatingSystemMapping.Builder setBrowserId(java.lang.String browserId)
          Sets the identification number of a browser entry via a string.
 BrowserOperatingSystemMapping.Builder setOperatingSystemId(int operatingSystemId)
          Sets the identification number of an operating system entry.
 BrowserOperatingSystemMapping.Builder setOperatingSystemId(java.lang.String operatingSystemId)
          Sets the identification number of an operating system entry via a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserOperatingSystemMapping.Builder

public BrowserOperatingSystemMapping.Builder()
Method Detail

build

@Nonnull
public BrowserOperatingSystemMapping build()
Build an instance of BrowserOperatingSystemMapping.

Returns:
a new instance of BrowserOperatingSystemMapping
Throws:
net.sf.qualitycheck.exception.IllegalNegativeArgumentException - if one of the needed arguments to build an instance of BrowserOperatingSystemMapping is invalid
net.sf.qualitycheck.exception.IllegalNullArgumentException - if one of the needed arguments to build an instance of BrowserOperatingSystemMapping is invalid

getBrowserId

public int getBrowserId()
Gets the identification number of a browser entry.

Returns:
identification number of a browser entry

getOperatingSystemId

public int getOperatingSystemId()
Gets the identification number of an operating system entry.

Returns:
identification number of an operating system entry

setBrowserId

@Nonnull
public BrowserOperatingSystemMapping.Builder setBrowserId(@Nonnegative
                                                                  int browserId)
Sets the identification number of a browser entry.

Parameters:
browserId - identification number
Throws:
net.sf.qualitycheck.exception.IllegalNegativeArgumentException - if the given number is smaller than 0

setBrowserId

@Nonnull
public BrowserOperatingSystemMapping.Builder setBrowserId(@Nonnull
                                                                  java.lang.String browserId)
Sets the identification number of a browser entry via a string.

Parameters:
browserId - identification number (as a String)
Throws:
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
java.lang.NumberFormatException - if the string can not be interpreted as a number
net.sf.qualitycheck.exception.IllegalNegativeArgumentException - if the interpreted number is smaller than 0

setOperatingSystemId

@Nonnull
public BrowserOperatingSystemMapping.Builder setOperatingSystemId(@Nonnegative
                                                                          int operatingSystemId)
Sets the identification number of an operating system entry.

Parameters:
operatingSystemId - identification number
Throws:
net.sf.qualitycheck.exception.IllegalNegativeArgumentException - if the given number is smaller than 0

setOperatingSystemId

@Nonnull
public BrowserOperatingSystemMapping.Builder setOperatingSystemId(@Nonnull
                                                                          java.lang.String operatingSystemId)
Sets the identification number of an operating system entry via a string.

Parameters:
operatingSystemId - identification number (as a String)
Throws:
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
java.lang.NumberFormatException - if the string can not be interpreted as a number
net.sf.qualitycheck.exception.IllegalNegativeArgumentException - if the interpreted number is smaller than 0


Copyright © 2011-2014. All Rights Reserved.