Package com.senzing.sdk
Class SzEntityIds
Provides an unmodifiable runtime-typed
Set
whose elements are strictly non-null instances of
Long entity ID's.- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a builder class for creating instances ofSzEntityIds. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty instance with no elements.SzEntityIds(long... entityIds) Constructs an instance with a variable-argument array oflongentity ID instances.SzEntityIds(Long entityId) Constructs an instance with exactly one entity ID.SzEntityIds(Long... entityIds) Constructs an instance with a variable-argument array ofLongentity ID instances.SzEntityIds(Long entityId1, Long entityId2) Constructs an instance with exactly two entity ID's.SzEntityIds(Long entityId1, Long entityId2, Long entityId3) Constructs an instance with exactly three entity ID's.SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4) Constructs an instance with exactly four entity ID instances.Constructs an instance with exactly five entity ID instances.SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6) Constructs an instance with exactly six entity ID instances.SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7) Constructs an instance with exactly seven entity ID instances.SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8) Constructs an instance with exactly eight entity ID instances.SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9) Constructs an instance with exactly nine entity ID instances.SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9, Long entityId10) Constructs an instance with exactly ten entity ID instances.SzEntityIds(Collection<Long> entityIds) Constructs with the specifiedCollectionof non-nullLongentity ID instances. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsAll(Collection<?> elements) iterator()static SzEntityIds.BuilderCreates a newSzEntityIds.Builderfor creating an instance ofSzEntityIds.static SzEntityIdsof()Constructs an empty instance with noLongentity ID elements.static SzEntityIdsof(long... entityIds) Constructs an instance with a variable-argument array oflongentity ID instances.static SzEntityIdsConstructs an instance with exactly oneLongentity ID.static SzEntityIdsConstructs an instance with a variable-argument array ofLongentity ID instances.static SzEntityIdsConstructs an instance with exactly two entity ID's.static SzEntityIdsConstructs an instance with exactly three entity ID's.static SzEntityIdsConstructs an instance with exactly four entity ID's.static SzEntityIdsConstructs an instance with exactly five entity ID's.static SzEntityIdsConstructs an instance with exactly six entity ID's.static SzEntityIdsof(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7) Constructs an instance with exactly seven entity ID's.static SzEntityIdsof(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8) Constructs an instance with exactly eight entity ID's.static SzEntityIdsof(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9) Constructs an instance with exactly nine entity ID's.static SzEntityIdsof(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9, Long entityId10) Constructs an instance with exactly ten entity ID's.static SzEntityIdsof(Collection<Long> entityIds) Constructs with the specifiedCollectionof non-nullLongentity ID instances.intsize()toString()Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, isEmpty, remove, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SzEntityIds
Constructs with the specifiedCollectionof non-nullLongentity ID instances.- Parameters:
entityIds- TheCollectionofLongentity ID instances.- Throws:
NullPointerException- If the specifiedCollectionisnullor containsnullelements.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds()Constructs an empty instance with no elements.- Since:
- 4.0.0
-
SzEntityIds
Constructs an instance with exactly one entity ID.- Parameters:
entityId- The single entity ID for this instance.- Throws:
NullPointerException- If the specified parameter isnull.- Since:
- 4.0.0
-
SzEntityIds
Constructs an instance with exactly two entity ID's. If the specified entity ID instances are duplicates of each other then the second will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.- Throws:
NullPointerException- If either of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
Constructs an instance with exactly three entity ID's. If any of the specified entity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4) throws NullPointerException Constructs an instance with exactly four entity ID instances. If any of the specified entity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5) throws NullPointerException Constructs an instance with exactly five entity ID instances. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6) throws NullPointerException Constructs an instance with exactly six entity ID instances. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7) throws NullPointerException Constructs an instance with exactly seven entity ID instances. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8) throws NullPointerException Constructs an instance with exactly eight entity ID instances. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.entityId8- The eighth entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9) throws NullPointerException Constructs an instance with exactly nine entity ID instances. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.entityId8- The eighth entity ID for this instance.entityId9- The ninth entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
public SzEntityIds(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9, Long entityId10) throws NullPointerException Constructs an instance with exactly ten entity ID instances. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.entityId8- The eighth entity ID for this instance.entityId9- The ninth entity ID for this instance.entityId10- The tenth entity ID for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
Constructs an instance with a variable-argument array ofLongentity ID instances. This constructor is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityIds- The zero or moreLongentity ID instances for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
SzEntityIds
Constructs an instance with a variable-argument array oflongentity ID instances. This constructor is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityIds- The zero or morelongentity ID instances for this instance.- Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
-
Method Details
-
of
Constructs with the specifiedCollectionof non-nullLongentity ID instances. Unlike theSzEntityIds(Collection)constructor, this static factory method allows the parameter to benull, resulting in anullreturn value.- Parameters:
entityIds- TheCollectionofLongentity ID instances.- Returns:
- The newly constructed instance of
SzEntityIds, ornullif the specified parameter isnull. - Throws:
NullPointerException- If the specifiedCollectioncontainsnullelements.- Since:
- 4.0.0
-
of
Constructs an empty instance with noLongentity ID elements.- Returns:
- The newly constructed instance of
SzEntityIds. - Since:
- 4.0.0
-
of
Constructs an instance with exactly oneLongentity ID.- Parameters:
entityId- The single entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If the specified parameter isnull.- Since:
- 4.0.0
-
of
Constructs an instance with exactly two entity ID's. If the specifiedLongentity ID instances are duplicates of each other then the second will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If either of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3) throws NullPointerException Constructs an instance with exactly three entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4) throws NullPointerException Constructs an instance with exactly four entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5) throws NullPointerException Constructs an instance with exactly five entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6) throws NullPointerException Constructs an instance with exactly six entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7) throws NullPointerException Constructs an instance with exactly seven entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8) throws NullPointerException Constructs an instance with exactly eight entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.entityId8- The eighth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9) throws NullPointerException Constructs an instance with exactly nine entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.entityId8- The eighth entity ID for this instance.entityId9- The ninth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
public static SzEntityIds of(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7, Long entityId8, Long entityId9, Long entityId10) throws NullPointerException Constructs an instance with exactly ten entity ID's. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityId1- The first entity ID for this instance.entityId2- The second entity ID for this instance.entityId3- The third entity ID for this instance.entityId4- The fourth entity ID for this instance.entityId5- The fifth entity ID for this instance.entityId6- The sixth entity ID for this instance.entityId7- The seventh entity ID for this instance.entityId8- The eighth entity ID for this instance.entityId9- The ninth entity ID for this instance.entityId10- The tenth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
Constructs an instance with a variable-argument array ofLongentity ID instances. This static factory method is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedLongentity ID instances are duplicated, then the duplicates will be ignored.Unlike the
SzEntityIds(Long...)constructor, this static factory method allows the parameter to benull, resulting in anullreturn value.- Parameters:
entityIds- The zero or moreLongentity ID instances for this instance.- Returns:
- The newly constructed instance of
SzEntityIds, ornullif the specified array isnull. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
of
Constructs an instance with a variable-argument array oflongentity ID instances. This static factory method is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedlongentity ID instances are duplicated, then the duplicates will be ignored.Unlike the
SzEntityIds(long...)constructor, this static factory method allows the parameter to benull, resulting in anullreturn value.- Parameters:
entityIds- The zero or moreLongentity ID instances for this instance.- Returns:
- The newly constructed instance of
SzEntityIds, ornullif the specified array isnull. - Throws:
NullPointerException- If any of the specified parameters isnull.- Since:
- 4.0.0
-
newBuilder
Creates a newSzEntityIds.Builderfor creating an instance ofSzEntityIds.- Returns:
- A new
SzEntityIds.Builderfor creating an instance ofSzEntityIds. - Since:
- 4.0.0
-
contains
- Specified by:
containsin interfaceCollection<Long>- Specified by:
containsin interfaceSet<Long>- Overrides:
containsin classAbstractCollection<Long>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Long>- Specified by:
containsAllin interfaceSet<Long>- Overrides:
containsAllin classAbstractCollection<Long>
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<Long>- Specified by:
sizein interfaceSet<Long>- Specified by:
sizein classAbstractCollection<Long>
-
toString
- Overrides:
toStringin classAbstractCollection<Long>
-