public class ComputerGraph.ComputerProperty<V> extends Object implements Property<V>, WrappedProperty<Property<V>>
Property.Exceptions
Constructor and Description |
---|
ComputerProperty(Property<V> property) |
Modifier and Type | Method and Description |
---|---|
Element |
element()
Get the element that this property is associated with.
|
boolean |
equals(Object other) |
Property<V> |
getBaseProperty() |
int |
hashCode() |
boolean |
isPresent()
Whether the property is empty or not.
|
String |
key()
The key of the property.
|
void |
remove()
Remove the property from the associated element.
|
String |
toString() |
V |
value()
The value of the property.
|
public V value() throws NoSuchElementException
Property
value
in interface Property<V>
NoSuchElementException
- thrown if the property is emptypublic boolean isPresent()
Property
public Element element()
Property
public void remove()
Property
public Property<V> getBaseProperty()
getBaseProperty
in interface WrappedProperty<Property<V>>
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.