D - The data type of this resource. Supported Types include: String, Long, Double, and Booleanpublic interface Resource<D> extends Instance
| Modifier and Type | Method and Description |
|---|---|
ResourceType.DataType<D> |
dataType()
Retrieves the data type of this Resource's ResourceType.
|
D |
getValue()
Retrieves the value of the Resource.
|
Instance |
owner()
If the Resource is unique, this method retrieves the Instance that possesses it.
|
Collection<Instance> |
ownerInstances()
Retrieves the set of all Instances that possess this Resource.
|
ResourceType<D> |
type()
Retrieves the type of the Resource, that is, the ResourceType of which this resource is an Instance.
|
hasResource, playsRoles, relations, resourcesasEntity, asEntityType, asInstance, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isTypecompareToD getValue()
ResourceType<D> type()
ResourceType.DataType<D> dataType()
Collection<Instance> ownerInstances()
Instance owner()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.