Class EntityReferenceCollection
java.lang.Object
- All Implemented Interfaces:
IDiffableObject,Serializable,Cloneable,Iterable<EntityReference>,Collection<EntityReference>,List<EntityReference>,RandomAccess,SequencedCollection<EntityReference>
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class EntityReferenceCollection
extends ArrayList<EntityReference>
implements IDiffableObject
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMember(EntityReference entity) voidaddMembers(EntityReferenceCollection members) booleancontainsMember(EntityReference entity) booleanstatic EntityReferenceCollectionfromJSON(org.json.JSONArray jsonArray) voidremoveMember(EntityReference entity) voidremoveMembers(EntityReferenceCollection members) org.json.JSONArraytoJSON()Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
EntityReferenceCollection
public EntityReferenceCollection()Initializes this instace with default values.
-
-
Method Details
-
containsMember
@ThingworxExtensionApiMethod(since={6,6}) public boolean containsMember(String name, RelationshipTypes.ThingworxRelationshipTypes type) -
containsMember
-
addMember
-
addMembers
-
removeMember
-
removeMembers
@ThingworxExtensionApiMethod(since={6,6}) public void removeMembers(EntityReferenceCollection members) -
toInfoTable
-
toJSON
- Throws:
Exception
-
fromJSON
@ThingworxExtensionApiMethod(since={6,6}) public static EntityReferenceCollection fromJSON(org.json.JSONArray jsonArray) throws Exception - Throws:
Exception
-