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.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofSzRecordKeysusing theSzRecordKeyinstances that were added to this builder instance.key(SzRecordKey key) Adds anSzRecordKeyinstance to thisSzRecordKeys.Builder.Creates an instance ofSzRecordKeyusing the specified data source code and record ID and adds that instance to thisSzRecordKeys.Builder.
-
Method Details
-
key
Adds anSzRecordKeyinstance to thisSzRecordKeys.Builder.- Parameters:
key- TheSzRecordKeyto 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.- Since:
- 4.0.0
-
key
public SzRecordKeys.Builder key(String dataSourceCode, String recordId) throws NullPointerException, IllegalStateException Creates an instance ofSzRecordKeyusing the specified data source code and record ID and adds that instance to thisSzRecordKeys.Builder.- Parameters:
dataSourceCode- The data source code for theSzRecordKeyto add to thisSzRecordKeys.Builder.recordId- The record ID for theSzRecordKeyto 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.- Since:
- 4.0.0
-
build
Builds a new instance ofSzRecordKeysusing theSzRecordKeyinstances 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.- Since:
- 4.0.0
-