Package org.jjazz.cl_editor.barbox.api
Class BarBoxConfig
java.lang.Object
org.jjazz.cl_editor.barbox.api.BarBoxConfig
A BarBoxConfig defines the BarRenderer types supported by a BarBox and the active ones.
This is an immutable class.
-
Constructor Summary
ConstructorDescriptionBarBoxConfig
(String... brTypes) Create a config with all BarRenderer types active by default. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getUpdatedConfig
(String... activeBrTypes) Return a new instance of this BarBoxConfig with only the specified BarRenderer types active.int
hashCode()
boolean
Return true if bbc has the same active BarRenderers (order is not taken into account).boolean
Return true if bbc has the same supported BarRenderers (order is not taken into account).toString()
-
Constructor Details
-
BarBoxConfig
Create a config with all BarRenderer types active by default.- Parameters:
brTypes
- Duplicate strings are ignored. No blank string allowed.- See Also:
-
BarRendererFactory
-
-
Method Details
-
getUpdatedConfig
Return a new instance of this BarBoxConfig with only the specified BarRenderer types active.- Parameters:
activeBrTypes
- Duplicate strings are ignored- Returns:
-
getSupportedBarRenderers
-
getActiveBarRenderers
-
toString
-
hasSameSupportedBarRenderers
Return true if bbc has the same supported BarRenderers (order is not taken into account).- Parameters:
bbc
-- Returns:
-
hasSameActiveBarRenderers
Return true if bbc has the same active BarRenderers (order is not taken into account).- Parameters:
bbc
-- Returns:
-
hashCode
public int hashCode() -
equals
-