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 int
compareTo(AbstractStyle o)
Method to compare two objects for sorting purposeabstract AbstractStyle
copy()
Abstract method to copy a component (dereferencing)boolean
equals(AbstractStyle other)
Method to compare two objects for sorting purposeInteger
getInternalID()
Gets the internal ID for sorting purpose in the Excel style documentvoid
setInternalID(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:
compareTo
in 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.
-
-