Package com.contentful.java.cma.model
Class CMAConstraint.Equals
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<java.lang.Object>
-
- com.contentful.java.cma.model.CMAConstraint.Equals
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<java.lang.Object>,java.util.Collection<java.lang.Object>,java.util.List<java.lang.Object>,java.util.RandomAccess
- Enclosing class:
- CMAConstraint
public static class CMAConstraint.Equals extends java.util.ArrayList<java.lang.Object>Create an equals deciding whether the path to a field constraints a given value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Equals()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMAConstraint.FieldKeyPathgetPath()java.lang.StringgetValue()CMAConstraint.EqualssetPath(CMAConstraint.FieldKeyPath fieldKeyPath)Update the fieldKeyPath component.CMAConstraint.EqualssetValue(java.lang.String value)Update the value to be used in comparison.java.lang.StringtoString()-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
getPath
public CMAConstraint.FieldKeyPath getPath()
- Returns:
- which path this equals is targeting.
-
setPath
public CMAConstraint.Equals setPath(CMAConstraint.FieldKeyPath fieldKeyPath)
Update the fieldKeyPath component.- Parameters:
fieldKeyPath- the new fieldKeyPath to be applied.- Returns:
- this instance for chaining
-
getValue
public java.lang.String getValue()
- Returns:
- the value to be used for comparison.
-
setValue
public CMAConstraint.Equals setValue(java.lang.String value)
Update the value to be used in comparison.- Parameters:
value- the value.- Returns:
- this instance for chaining.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.AbstractCollection<java.lang.Object>- Returns:
- Human readable representation of this instance.
-
-