public class DefaultCapabilityState extends Object implements CapabilityState
CapabilityState
.Constructor and Description |
---|
DefaultCapabilityState(@NonNull Client client,
@NonNull String capabilityListItem)
Constructs a capability state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@NonNull Client |
getClient()
Gets the Client to which this belongs.
|
long |
getCreationTime()
Gets the time this snapshot was created.
|
@NonNull String |
getName()
Gets the name of the capability.
|
@NonNull Optional<String> |
getValue()
Gets the value of the capability.
|
int |
hashCode() |
boolean |
isDisabled()
Gets if the state of the capability is disabled.
|
@NonNull String |
toString() |
public boolean isDisabled()
CapabilityState
isDisabled
in interface CapabilityState
public @NonNull Client getClient()
ClientLinked
getClient
in interface ClientLinked
public long getCreationTime()
Snapshot
getCreationTime
in interface Snapshot
System.currentTimeMillis()
public @NonNull String getName()
CapabilityState
getName
in interface CapabilityState
public @NonNull Optional<String> getValue()
CapabilityState
getValue
in interface CapabilityState
Copyright © 2013–2021 Kitteh. All rights reserved.