Package ch.rabanti.picoxlsx4j.style
Class AbstractStyle
- java.lang.Object
-
- ch.rabanti.picoxlsx4j.style.AbstractStyle
-
- All Implemented Interfaces:
Comparable<AbstractStyle>
public abstract class AbstractStyle extends Object implements Comparable<AbstractStyle>
Class represents an abstract style component- Author:
- Raphael Stoeckli
-
-
Constructor Summary
Constructors Constructor Description AbstractStyle()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(AbstractStyle o)Method to compare two objects for sorting purposeabstract AbstractStylecopy()Abstract method to copy a component (dereferencing)booleanequals(AbstractStyle other)Method to compare two objects for sorting purposeIntegergetInternalID()Gets 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
-
-
-
Method Detail
-
getInternalID
public Integer getInternalID()
Gets the internal ID for sorting purpose in the Excel style document- Returns:
- Internal ID (can be null for random order)
-
setInternalID
public void setInternalID(Integer internalID)
Sets the internal ID for sorting purpose in the Excel style document- Parameters:
internalID- Internal ID (can be null for random order)
-
copy
public abstract AbstractStyle copy()
Abstract method to copy a component (dereferencing)- Returns:
- Returns a copied component
-
equals
public boolean equals(AbstractStyle other)
Method to compare two objects for sorting purpose- Parameters:
other- Other object to compare with this object- Returns:
- True if both objects are equal, otherwise false
-
compareTo
public int compareTo(AbstractStyle o)
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.
-
-