Package com.senzing.sdk
Class SzRecordKeys.Builder
java.lang.Object
com.senzing.sdk.SzRecordKeys.Builder
- Enclosing class:
- SzRecordKeys
Provides a builder class for creating instances of
SzRecordKeys
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new instance ofSzRecordKeys
using theSzRecordKey
instances that were added to this builder instance.key
(SzRecordKey key) Adds anSzRecordKey
instance to thisSzRecordKeys.Builder
.Creates an instance ofSzRecordKey
using the specified data source code and record ID and adds that instance to thisSzRecordKeys.Builder
.
-
Method Details
-
key
Adds anSzRecordKey
instance to thisSzRecordKeys.Builder
.- Parameters:
key
- TheSzRecordKey
to add to thisSzRecordKeys.Builder
.- Returns:
- A reference to this instance.
- Throws:
NullPointerException
- If either of the parameters isnull
.IllegalStateException
- If this builder has already had itsbuild()
method called.
-
key
public SzRecordKeys.Builder key(String dataSourceCode, String recordId) throws NullPointerException, IllegalStateException Creates an instance ofSzRecordKey
using the specified data source code and record ID and adds that instance to thisSzRecordKeys.Builder
.- Parameters:
dataSourceCode
- The data source code for theSzRecordKey
to add to thisSzRecordKeys.Builder
.recordId
- The record ID for theSzRecordKey
to add to thisSzRecordKeys.Builder
.- Returns:
- A reference to this instance.
- Throws:
NullPointerException
- If either of the parameters isnull
.IllegalStateException
- If this builder has already had itsbuild()
method called.
-
build
Builds a new instance ofSzRecordKeys
using theSzRecordKey
instances that were added to this builder instance.- Returns:
- The newly constructed instance of
SzRecordKeys
. - Throws:
IllegalStateException
- If this builder has already had itsbuild()
method called.
-