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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMember
(EntityReference entity) void
addMembers
(EntityReferenceCollection members) boolean
containsMember
(EntityReference entity) boolean
static EntityReferenceCollection
fromJSON
(org.json.JSONArray jsonArray) void
removeMember
(EntityReference entity) void
removeMembers
(EntityReferenceCollection members) org.json.JSONArray
toJSON()
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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
EntityReferenceCollection
public EntityReferenceCollection()
-
-
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
- If an error occurs
-
fromJSON
@ThingworxExtensionApiMethod(since={6,6}) public static EntityReferenceCollection fromJSON(org.json.JSONArray jsonArray) throws Exception - Throws:
Exception
- If an error occurs
-