net.sf.uadetector.internal.data
Class Data
java.lang.Object
net.sf.uadetector.internal.data.Data
- All Implemented Interfaces:
- java.io.Serializable
@Immutable
public class Data
- extends java.lang.Object
- implements java.io.Serializable
This class represents the detection information of UADetector.
An instance of Data
is immutable, their values cannot be changed after creation.
- Author:
- André Rouél
- See Also:
- Serialized Form
Field Summary |
static Data |
EMPTY
An immutable empty Data object. |
Constructor Summary |
Data(java.util.Set<Browser> browsers,
java.util.Map<java.lang.Integer,java.util.SortedSet<BrowserPattern>> browserPatterns,
java.util.Map<java.lang.Integer,BrowserType> browserTypes,
java.util.SortedMap<BrowserPattern,Browser> patternToBrowserMap,
java.util.Set<BrowserOperatingSystemMapping> browserToOperatingSystemMappings,
java.util.Set<OperatingSystem> operatingSystems,
java.util.Map<java.lang.Integer,java.util.SortedSet<OperatingSystemPattern>> operatingSystemPatterns,
java.util.SortedMap<OperatingSystemPattern,OperatingSystem> patternToOperatingSystemMap,
java.util.List<Robot> robots,
java.util.Set<Device> devices,
java.util.Map<java.lang.Integer,java.util.SortedSet<DevicePattern>> devicePatterns,
java.util.SortedMap<DevicePattern,Device> patternToDeviceMap,
java.lang.String version)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EMPTY
public static final Data EMPTY
- An immutable empty
Data
object.
Data
public Data(@Nonnull
java.util.Set<Browser> browsers,
@Nonnull
java.util.Map<java.lang.Integer,java.util.SortedSet<BrowserPattern>> browserPatterns,
@Nonnull
java.util.Map<java.lang.Integer,BrowserType> browserTypes,
@Nonnull
java.util.SortedMap<BrowserPattern,Browser> patternToBrowserMap,
@Nonnull
java.util.Set<BrowserOperatingSystemMapping> browserToOperatingSystemMappings,
@Nonnull
java.util.Set<OperatingSystem> operatingSystems,
@Nonnull
java.util.Map<java.lang.Integer,java.util.SortedSet<OperatingSystemPattern>> operatingSystemPatterns,
@Nonnull
java.util.SortedMap<OperatingSystemPattern,OperatingSystem> patternToOperatingSystemMap,
@Nonnull
java.util.List<Robot> robots,
@Nonnull
java.util.Set<Device> devices,
@Nonnull
java.util.Map<java.lang.Integer,java.util.SortedSet<DevicePattern>> devicePatterns,
@Nonnull
java.util.SortedMap<DevicePattern,Device> patternToDeviceMap,
@Nonnull
java.lang.String version)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getBrowserPatterns
@Nonnull
public java.util.Map<java.lang.Integer,java.util.SortedSet<BrowserPattern>> getBrowserPatterns()
getBrowsers
@Nonnull
public java.util.Set<Browser> getBrowsers()
getBrowserToOperatingSystemMappings
@Nonnull
public java.util.Set<BrowserOperatingSystemMapping> getBrowserToOperatingSystemMappings()
getBrowserTypes
@Nonnull
public java.util.Map<java.lang.Integer,BrowserType> getBrowserTypes()
getDevicePatterns
@Nonnull
public java.util.Map<java.lang.Integer,java.util.SortedSet<DevicePattern>> getDevicePatterns()
getDevices
@Nonnull
public java.util.Set<Device> getDevices()
getOperatingSystemPatterns
@Nonnull
public java.util.Map<java.lang.Integer,java.util.SortedSet<OperatingSystemPattern>> getOperatingSystemPatterns()
getOperatingSystems
@Nonnull
public java.util.Set<OperatingSystem> getOperatingSystems()
getPatternToBrowserMap
@Nonnull
public java.util.SortedMap<BrowserPattern,Browser> getPatternToBrowserMap()
getPatternToDeviceMap
@Nonnull
public java.util.SortedMap<DevicePattern,Device> getPatternToDeviceMap()
getPatternToOperatingSystemMap
@Nonnull
public java.util.SortedMap<OperatingSystemPattern,OperatingSystem> getPatternToOperatingSystemMap()
getRobots
@Nonnull
public java.util.List<Robot> getRobots()
getVersion
@Nonnull
public java.lang.String getVersion()
- Gets the version of the UAS data which are available within this instance.
- Returns:
- version of UAS data
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toStats
@Nonnull
public java.lang.String toStats()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011-2014. All Rights Reserved.