Skip to content
com.iristick.smartglass.support.camera2

Class CameraCharacteristics.Key<TE,TIA,TII>

  • java.lang.Object
    • com.iristick.smartglass.support.camera2.CameraCharacteristics.Key<TE,TIA,TII>
Enclosing class:
CameraCharacteristics

public static final class CameraCharacteristics.Key<TE,TIA,TII>
extends Object

A Key is used to capture request field lookups with CameraCharacteristics.get(Key).

To enumerate over all possible keys for CameraCharacteristics, see CameraMetadata.getKeys().

See Also:
CameraCharacteristics.get(Key), CameraMetadata.getKeys()

Method Summary

Modifier and Type Method and Description
boolean equals(Object o)
com.iristick.smartglass.support.camera2.internal.KeyConverter<TE,TIA,TII> getConverter() 
String getName()
Returns a camelCase, period separated name formatted like: "root.section[.subsections].name".
Class<TE> getType()
Returns the data type associated with this CameraCharacteristics.Key
int hashCode()
boolean isUnlisted() 
CameraCharacteristics.Key<TIA> toAndroidKey() 
CameraCharacteristics.Key<TII> toIristickKey() 
String toString()
Returns this CameraCharacteristics.Key as a string representation.

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Method Detail

toIristickKey

public CameraCharacteristics.Key<TII> toIristickKey()

toAndroidKey

public CameraCharacteristics.Key<TIA> toAndroidKey()

isUnlisted

public boolean isUnlisted()

getConverter

public com.iristick.smartglass.support.camera2.internal.KeyConverter<TE,TIA,TII> getConverter()

getName

public String getName()

Returns a camelCase, period separated name formatted like: "root.section[.subsections].name".

Built-in keys exposed by the Android SDK are always prefixed with "android."; keys that are device/platform-specific are prefixed with "com".

For example, CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP would have a name of "android.scaler.streamConfigurationMap"; whereas a device specific key might look like "com.iristick.smartglass.laser.mode".

Returns:
String representation of the key name. This value will never be null.

getType

public Class<TE> getType()

Returns the data type associated with this CameraCharacteristics.Key

Returns:
Data type associated with this CameraCharacteristics.Key. This value will never be null.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()

Returns this CameraCharacteristics.Key as a string representation.

"CameraCharacteristics.Key(%s)", where "%s represents the name of this key as returned by getName().

Overrides:
toString in class Object
Returns:
String representation of CameraCharacteristics.Key. This value will never be null