T - the type of the value held by the register.public static final class MMIODeviceConfig.RawRegisterConfig<T extends java.lang.Number> extends MMIODeviceConfig.RawMemoryConfig
RawRegisterConfig class encapsulates the configuration parameters of a register.| Constructor and Description |
|---|
MMIODeviceConfig.RawRegisterConfig(int offset,
java.lang.String name,
java.lang.Class<T> type)
Constructs a new
RawRegisterConfig with the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks two
RawRegisterConfig objects for equality. |
java.lang.Class<T> |
getType()
Gets the configured type of the value held by the register.
|
int |
hashCode()
Returns the hash code value for this object.
|
getName, getOffsetpublic MMIODeviceConfig.RawRegisterConfig(int offset,
java.lang.String name,
java.lang.Class<T> type)
RawRegisterConfig with the provided parameters.offset - the offset of the register from the base address (a positive or zero integer).name - the name for the register.type - the type of the value held by the register, one of: Byte, Short or Integer
.java.lang.IllegalArgumentException - if any of the following is true:
offset is lesser than 0;type is not one of the defined values.java.lang.NullPointerException - if name is null.public java.lang.Class<T> getType()
Byte, Short or Integer.public int hashCode()
hashCode in class MMIODeviceConfig.RawMemoryConfigpublic boolean equals(java.lang.Object obj)
RawRegisterConfig objects for equality.equals in class MMIODeviceConfig.RawMemoryConfigobj - the object to test for equality with this object.true if obj is a RawRegisterConfig and has
the same hardware addressing information and configuration parameter values
as this RawRegisterConfig object.Copyright © 2012, 2013, Oracle and/or its affiliates. All rights reserved.
Legal Notices