Package com._1c.g5.v8.dt.team
Class DevelopmentOptions
- java.lang.Object
-
- com._1c.g5.v8.dt.team.DevelopmentOptions
-
public final class DevelopmentOptions extends Object
Development options allows to customize development process settings when the development process operation is performed.- Restriction:
- This class is not intended to be sub-classed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description DevelopmentOptions()
Creates an empty instance ofDevelopmentOptions
.DevelopmentOptions(String key, String value)
Creates an instance ofDevelopmentOptions
with the single provided option.DevelopmentOptions(Map<String,String> options)
Creates an instance ofDevelopmentOptions
with the provided options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsOption(String key)
Returns whether development options contains a development option with the provided key.DevelopmentOptions
copy()
Creates and returns a new copy of development options.boolean
equals(Object obj)
Optional<String>
getOption(String key)
Returns a development option with the provided key.Map<String,String>
getOptions()
Returns a map of all development options.int
hashCode()
void
setOption(String key, String value)
Sets a development option with the provided key.void
setOptions(Map<String,String> options)
Sets and adds a map of the development options.
-
-
-
Constructor Detail
-
DevelopmentOptions
public DevelopmentOptions()
Creates an empty instance ofDevelopmentOptions
.
-
DevelopmentOptions
public DevelopmentOptions(String key, String value)
Creates an instance ofDevelopmentOptions
with the single provided option.- Parameters:
key
- an option key to set, cannot benull
value
- an option value to set, cannot benull
-
DevelopmentOptions
public DevelopmentOptions(Map<String,String> options)
Creates an instance ofDevelopmentOptions
with the provided options.- Parameters:
options
- a map of options to set, cannot benull
-
-
Method Detail
-
getOptions
public Map<String,String> getOptions()
Returns a map of all development options. Modifying the map does not affect this debug options.- Returns:
- a map of all development options, never
null
-
containsOption
public boolean containsOption(String key)
Returns whether development options contains a development option with the provided key.- Parameters:
key
- the option key, cannot benull
- Returns:
- whether development options contains a development option with the provided key
-
getOption
public Optional<String> getOption(String key)
Returns a development option with the provided key.- Parameters:
key
- the option key, cannot benull
- Returns:
- a development option with the provided key
-
setOption
public void setOption(String key, String value)
Sets a development option with the provided key.- Parameters:
key
- the option key, cannot benull
value
- the option value, cannot benull
-
setOptions
public void setOptions(Map<String,String> options)
Sets and adds a map of the development options.- Parameters:
options
- a map of options to set, cannot benull
-
copy
public DevelopmentOptions copy()
Creates and returns a new copy of development options.- Returns:
- a new copy of development options, never
null
-
-