Lines Matching defs:relation
24 * An immutable value type representing a statement relation with "kind" and "detail".
27 * field specifies which permission to delegate. A statement involving this relation does not
49 * Returns the relation's kind.
57 * Returns the relation's detail.
80 * @throws AssociationServiceException if the relation is not well formatted.
82 public static Relation create(@NonNull String relation) throws AssociationServiceException {
83 String[] r = relation.split("/", 2);
91 * Returns true if {@code relation} has the same kind and detail.
93 public boolean matches(Relation relation) {
94 return getKind().equals(relation.getKind()) && getDetail().equals(relation.getDetail());
98 * Returns a string representation of this relation.
102 StringBuilder relation = new StringBuilder();
103 relation.append(getKind());
104 relation.append("/");
105 relation.append(getDetail());
106 return relation.toString();
119 Relation relation = (Relation) o;
121 if (mDetail != null ? !mDetail.equals(relation.mDetail) : relation.mDetail != null) {
124 if (mKind != null ? !mKind.equals(relation.mKind) : relation.mKind != null) {