org.usergrid.persistence
Class SimpleEntityRef
java.lang.Object
org.usergrid.persistence.SimpleEntityRef
- All Implemented Interfaces:
- EntityRef
- Direct Known Subclasses:
- ConnectedEntityRefImpl
public class SimpleEntityRef
- extends Object
- implements EntityRef
NULL_ID
public static final UUID NULL_ID
type
protected final String type
id
protected final UUID id
SimpleEntityRef
public SimpleEntityRef(UUID id)
SimpleEntityRef
public SimpleEntityRef(String type,
UUID id)
SimpleEntityRef
public SimpleEntityRef(EntityRef entityRef)
ref
public static EntityRef ref()
getUuid
public UUID getUuid()
- Description copied from interface:
EntityRef
- Gets the id.
- Specified by:
getUuid
in interface EntityRef
- Returns:
- the id
getType
public String getType()
- Description copied from interface:
EntityRef
- Gets the type.
- Specified by:
getType
in interface EntityRef
- Returns:
- the type
ref
public static EntityRef ref(String entityType,
UUID entityId)
ref
public static EntityRef ref(UUID entityId)
ref
public static EntityRef ref(EntityRef ref)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getUuid
public static UUID getUuid(EntityRef ref)
getType
public static String getType(EntityRef ref)
Copyright © 2013. All Rights Reserved.