Package com.senzing.sdk
Class SzEntityIds
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a builder class for creating instances ofSzEntityIds
. -
Constructor Summary
ConstructorDescriptionConstructs an empty instance with no elements.SzEntityIds
(long... entityIds) Constructs an instance with a variable-argument array oflong
entity ID instances.SzEntityIds
(Long entityId) Constructs an instance with exactly one entity ID.SzEntityIds
(Long... entityIds) Constructs an instance with a variable-argument array ofLong
entity 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 specifiedCollection
of non-nullLong
entity ID instances. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
containsAll
(Collection<?> elements) iterator()
static SzEntityIds.Builder
Creates a newSzEntityIds.Builder
for creating an instance ofSzEntityIds
.static SzEntityIds
of()
Constructs an empty instance with noLong
entity ID elements.static SzEntityIds
of
(long... entityIds) Constructs an instance with a variable-argument array oflong
entity ID instances.static SzEntityIds
Constructs an instance with exactly oneLong
entity ID.static SzEntityIds
Constructs an instance with a variable-argument array ofLong
entity ID instances.static SzEntityIds
Constructs an instance with exactly two entity ID's.static SzEntityIds
Constructs an instance with exactly three entity ID's.static SzEntityIds
Constructs an instance with exactly four entity ID's.static SzEntityIds
Constructs an instance with exactly five entity ID's.static SzEntityIds
Constructs an instance with exactly six entity ID's.static SzEntityIds
of
(Long entityId1, Long entityId2, Long entityId3, Long entityId4, Long entityId5, Long entityId6, Long entityId7) Constructs an instance with exactly seven entity ID's.static SzEntityIds
of
(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 SzEntityIds
of
(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 SzEntityIds
of
(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 SzEntityIds
of
(Collection<Long> entityIds) Constructs with the specifiedCollection
of non-nullLong
entity ID instanes.int
size()
toString()
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, isEmpty, remove, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SzEntityIds
Constructs with the specifiedCollection
of non-nullLong
entity ID instances.- Parameters:
entityIds
- TheCollection
ofLong
entity ID instances.- Throws:
NullPointerException
- If the specifiedCollection
isnull
or containsnull
elements.
-
SzEntityIds
public SzEntityIds()Constructs an empty instance with no elements. -
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
.
-
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
.
-
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
.
-
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 entityr 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
.
-
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 specifiedLong
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.entityId5
- The fifth entity ID for this instance.- Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
SzEntityIds
Constructs an instance with a variable-argument array ofLong
entity ID instances. This constructor is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedLong
entity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityIds
- The zero or moreLong
entity ID instances for this instance.- Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
SzEntityIds
Constructs an instance with a variable-argument array oflong
entity ID instances. This constructor is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedLong
entity ID instances are duplicated, then the duplicates will be ignored.- Parameters:
entityIds
- The zero or morelong
entity ID instances for this instance.- Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
-
Method Details
-
of
Constructs with the specifiedCollection
of non-nullLong
entity ID instanes. Unlike theSzEntityIds(Collection)
constructor, this static factory method allows the parameter to benull
, resulting in anull
return value.- Parameters:
entityIds
- TheCollection
ofLong
entity ID instances.- Returns:
- The newly constructed instance of
SzEntityIds
, ornull
if the specified parameter isnull
. - Throws:
NullPointerException
- If the specifiedCollection
containsnull
elements.
-
of
Constructs an empty instance with noLong
entity ID elements.- Returns:
- The newly constructed instance of
SzEntityIds
.
-
of
Constructs an instance with exactly oneLong
entity ID.- Parameters:
entityId
- The single entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds
. - Throws:
NullPointerException
- If the specified parameter isnull
.
-
of
Constructs an instance with exactly two entity ID's. If the specifiedLong
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.- Returns:
- The newly constructed instance of
SzEntityIds
. - Throws:
NullPointerException
- If either of the specified parameters isnull
.
-
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 specifiedLong
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.- Returns:
- The newly constructed instance of
SzEntityIds
. - Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
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 specifiedLong
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.- Returns:
- The newly constructed instance of
SzEntityIds
. - Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
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 specifiedLong
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.entityId5
- The fifth entity ID for this instance.- Returns:
- The newly constructed instance of
SzEntityIds
. - Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
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 specifiedLong
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.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
.
-
of
Constructs an instance with a variable-argument array ofLong
entity ID instances. This static fatory method is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedLong
entity 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 anull
return value.- Parameters:
entityIds
- The zero or moreLong
entity ID instances for this instance.- Returns:
- The newly constructed instance of
SzEntityIds
, ornull
if the specified array isnull
. - Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
of
Constructs an instance with a variable-argument array oflong
entity ID instances. This static fatory method is called when an array is specified or eleven or more variable argument parameters are provided. If any of the specifiedlong
entity 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 anull
return value.- Parameters:
entityIds
- The zero or moreLong
entity ID instances for this instance.- Returns:
- The newly constructed instance of
SzEntityIds
, ornull
if the specified array isnull
. - Throws:
NullPointerException
- If any of the specified parameters isnull
.
-
newBuilder
Creates a newSzEntityIds.Builder
for creating an instance ofSzEntityIds
.- Returns:
- A new
SzEntityIds.Builder
for creating an instance ofSzEntityIds
.
-
contains
- Specified by:
contains
in interfaceCollection<Long>
- Specified by:
contains
in interfaceSet<Long>
- Overrides:
contains
in classAbstractCollection<Long>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Long>
- Specified by:
containsAll
in interfaceSet<Long>
- Overrides:
containsAll
in classAbstractCollection<Long>
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<Long>
- Specified by:
size
in interfaceSet<Long>
- Specified by:
size
in classAbstractCollection<Long>
-
toString
- Overrides:
toString
in classAbstractCollection<Long>
-