public class DefaultFlags extends AbstractDefaultFacet implements Flags
DefaultDeviceInfo
implementation.Constructor and Description |
---|
DefaultFlags(DeviceInfo context)
Constructs a flags facet that is projected onto the specified device info context.
|
Modifier and Type | Method and Description |
---|---|
int |
flagCount()
Returns the total number of flags the underlying device type has.
|
boolean |
hasFlag(String flag)
Returns true if the underlying device has the specified "flag" set.
|
getContext
getIpAddress, getTypeName, setIpAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getTypeName
public DefaultFlags(DeviceInfo context)
context
- the device info of which this is a facetpublic boolean hasFlag(String flag)
hasFlag
in interface Flags
flag
- the flag nameIllegalArgumentException
- if flag is not alphanumeric onlyCopyright © 2015. All Rights Reserved.