Class InstrumentSelector.Builder
- Enclosing class:
- InstrumentSelector
InstrumentSelector instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract InstrumentSelectorbuild()Returns an InstrumentSelector instance with the content of this builder.setInstrumentName(String instrumentName) Sets the exact instrument name that will be selected.abstract InstrumentSelector.BuildersetInstrumentNameFilter(Predicate<String> instrumentNameFilter) Sets thePatternfor instrument names that will be selected.setInstrumentNamePattern(Pattern instrumentNamePattern) Sets thePatternfor instrument names that will be selected.setInstrumentNameRegex(String regex) Sets a specifier for selecting Instruments by name.abstract InstrumentSelector.BuildersetInstrumentType(InstrumentType instrumentType) Sets a specifier forInstrumentType.abstract InstrumentSelector.BuildersetMeterSelector(MeterSelector meterSelector) Sets theMeterSelectorfor whichMeters will be included.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setInstrumentType
Sets a specifier forInstrumentType. -
setInstrumentNameFilter
public abstract InstrumentSelector.Builder setInstrumentNameFilter(Predicate<String> instrumentNameFilter) Sets thePatternfor instrument names that will be selected.Note: The last provided of
setInstrumentNameFilter(java.util.function.Predicate<java.lang.String>),setInstrumentNamePattern(java.util.regex.Pattern)setInstrumentNameRegex(java.lang.String)andsetInstrumentName(java.lang.String)is used. -
setInstrumentNamePattern
Sets thePatternfor instrument names that will be selected.Note: The last provided of
setInstrumentNameFilter(java.util.function.Predicate<java.lang.String>),setInstrumentNamePattern(java.util.regex.Pattern)setInstrumentNameRegex(java.lang.String)andsetInstrumentName(java.lang.String)is used. -
setInstrumentName
Sets the exact instrument name that will be selected.Note: The last provided of
setInstrumentNameFilter(java.util.function.Predicate<java.lang.String>),setInstrumentNamePattern(java.util.regex.Pattern)setInstrumentNameRegex(java.lang.String)andsetInstrumentName(java.lang.String)is used. -
setInstrumentNameRegex
Sets a specifier for selecting Instruments by name.Note: The last provided of
setInstrumentNameFilter(java.util.function.Predicate<java.lang.String>),setInstrumentNamePattern(java.util.regex.Pattern)setInstrumentNameRegex(java.lang.String)andsetInstrumentName(java.lang.String)is used. -
setMeterSelector
Sets theMeterSelectorfor whichMeters will be included. -
build
Returns an InstrumentSelector instance with the content of this builder.
-