public class BarString extends Object
Constructs `Bar` delimited strings, which must have `Bar` at the beginning and end,
and `Bar` is automatically selected in the following characters.
U+007C | VERTICAL LINE (|, |, |) (single vertical line)
U+00A6 ¦ BROKEN BAR (¦) (single broken line)
U+2016 ‖ DOUBLE VERTICAL LINE (‖, ‖) (double vertical line ( {\displaystyle \|}\| ): used in pairs to indicate norm)
U+FF5C | FULLWIDTH VERTICAL LINE (Fullwidth form)
U+2225 ∥ PARALLEL TO (∥, ∥, ∥, ∥, ∥)
U+01C0 ǀ LATIN LETTER DENTAL CLICK
U+01C1 ǁ LATIN LETTER LATERAL CLICK
U+2223 ∣ DIVIDES (∣, ∣, ∣, ∣)
U+2502 │ BOX DRAWINGS LIGHT VERTICAL (│) (and various other box drawing characters in the range U+2500 to U+257F)
U+0964 । DEVANAGARI DANDA
U+0965 ॥ DEVANAGARI DOUBLE DANDA
see Vertical_bar
| Modifier and Type | Field and Description |
|---|---|
static char |
BrokenBar |
static char |
DandaBar |
static char |
DentalBar |
static char |
DividesBar |
static char |
DoubleBar |
static char |
DoubleDandaBar |
static char |
DrawingBar |
static char |
FullwidthBar |
static char |
LateralBar |
static char |
ParallelBar |
static char |
SingleBar |
| Constructor and Description |
|---|
BarString() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(BigDecimal num) |
void |
append(boolean num) |
void |
append(char num) |
void |
append(double num) |
void |
append(float num) |
void |
append(int num) |
void |
append(long num) |
void |
append(Object obj) |
boolean |
isValid()
whether the string contains `Bar`
|
static @NotNull ArrayList<String> |
split(String str) |
static @NotNull ArrayList<String> |
split(String str,
int max) |
static @NotNull ArrayList<String> |
split(String str,
int max,
boolean exactly)
parse the BarString, item in list is not null.
|
String |
toString() |
@NotNull ArrayList<String> |
values(boolean nullToEmpty) |
public static final char SingleBar
public static final char BrokenBar
public static final char FullwidthBar
public static final char DentalBar
public static final char DividesBar
public static final char DrawingBar
public static final char DandaBar
public static final char DoubleBar
public static final char ParallelBar
public static final char LateralBar
public static final char DoubleDandaBar
public void append(Object obj)
public void append(BigDecimal num)
public void append(long num)
public void append(int num)
public void append(char num)
public void append(boolean num)
public void append(double num)
public void append(float num)
public boolean isValid()
Copyright © 2024. All rights reserved.