public final class ListItemOptions extends Object
Provides the options for a list item.
Modifier and Type | Field and Description |
---|---|
static ListItemOptions |
EMPTY
Gets an empty instance.
|
Constructor and Description |
---|
ListItemOptions(int style)
Initializes a new instance of the
ListItemOptions class. |
ListItemOptions(int style,
int depth)
Initializes a new instance of the
ListItemOptions class. |
ListItemOptions(int style,
int depth,
char bullet)
Initializes a new instance of the
ListItemOptions class. |
ListItemOptions(int style,
int depth,
char bullet,
String prefix,
String postfix)
Initializes a new instance of the
ListItemOptions class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ListItemOptions other)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
char |
getBullet()
Gets a bullet char.
|
int |
getDepth()
Gets a depth of the item.
|
String |
getPostfix()
Gets a postfix of the item.
|
String |
getPrefix()
Gets a prefix of the item.
|
int |
getStyle()
Gets a style of the item.
|
int |
hashCode()
Returns a hash code value for the object.
|
static boolean |
op_Equality(ListItemOptions left,
ListItemOptions right)
Checks if the values of two operands are equal or not, if yes then condition becomes true.
|
static boolean |
op_Inequality(ListItemOptions left,
ListItemOptions right)
Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.
|
public static final ListItemOptions EMPTY
Gets an empty instance.
public ListItemOptions(int style)
Initializes a new instance of the ListItemOptions
class.
style
- A style of the item.public ListItemOptions(int style, int depth)
Initializes a new instance of the ListItemOptions
class.
style
- A style of the item.depth
- A depth of the item.public ListItemOptions(int style, int depth, char bullet)
Initializes a new instance of the ListItemOptions
class.
style
- A style of the item.depth
- A depth of the item.bullet
- A char that represents a bullet.public ListItemOptions(int style, int depth, char bullet, String prefix, String postfix)
Initializes a new instance of the ListItemOptions
class.
style
- A style of the item.depth
- A depth of the item.bullet
- A char that represents a bullet.prefix
- A prefix of the item.postfix
- A postfix of the item.public int getStyle()
Gets a style of the item.
public int getDepth()
Gets a depth of the item.
public String getPrefix()
Gets a prefix of the item.
public String getPostfix()
Gets a postfix of the item.
public char getBullet()
Gets a bullet char.
public static boolean op_Equality(ListItemOptions left, ListItemOptions right)
Checks if the values of two operands are equal or not, if yes then condition becomes true.
left
- The first object to compare.right
- The second object to compare.public static boolean op_Inequality(ListItemOptions left, ListItemOptions right)
Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.
left
- The first object to compare.right
- The second object to compare.public boolean equals(ListItemOptions other)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
Copyright © 2019. All rights reserved.