Package com.senzing.sdk
Class SzEntityIds.Builder
java.lang.Object
com.senzing.sdk.SzEntityIds.Builder
- Enclosing class:
- SzEntityIds
Provides a builder class for creating instances of
SzEntityIds
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new instance ofSzEntityIds
using theLong
entity ID instances that were added to this builder instance.Adds aLong
entity ID instance to thisSzEntityIds.Builder
.
-
Method Details
-
id
Adds aLong
entity ID instance to thisSzEntityIds.Builder
.- Parameters:
entityId
- TheLong
entity ID to add to thisSzEntityIds.Builder
.- Returns:
- A reference to this instance.
- Throws:
NullPointerException
- If the specified parameter isnull
.IllegalStateException
- If this builder has already had itsbuild()
method called.
-
build
Builds a new instance ofSzEntityIds
using theLong
entity ID instances that were added to this builder instance.- Returns:
- The newly constructed instance of
SzEntityIds
. - Throws:
IllegalStateException
- If this builder has already had itsbuild()
method called.
-