Package ch.rabanti.nanoxlsx4j.styles
Class AbstractStyle
java.lang.Object
ch.rabanti.nanoxlsx4j.styles.AbstractStyle
- All Implemented Interfaces:
Comparable<AbstractStyle>
Class represents an abstract style component
- Author:
- Raphael Stoeckli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethod to compare two objects for sorting purposeabstract AbstractStylecopy()Abstract method to copy a component (dereferencing)booleanMethod to compare two objects for sorting purposeGets the internal ID for sorting purpose in the Excel style documentvoidsetInternalID(Integer internalID) Sets the internal ID for sorting purpose in the Excel style document
-
Constructor Details
-
AbstractStyle
public AbstractStyle()
-
-
Method Details
-
getInternalID
Gets the internal ID for sorting purpose in the Excel style document- Returns:
- Internal ID (can be null for random order)
-
setInternalID
Sets the internal ID for sorting purpose in the Excel style document- Parameters:
internalID- Internal ID (can be null for random order)
-
copy
Abstract method to copy a component (dereferencing)- Returns:
- Returns a copied component
-
equals
Method to compare two objects for sorting purpose -
compareTo
Method to compare two objects for sorting purpose- Specified by:
compareToin interfaceComparable<AbstractStyle>- Parameters:
o- Other object to compare with this object- Returns:
- -1 if the other object is bigger. 0 if both objects are equal. 1 if the other object is smaller.
-