java.lang.Object
dev.civl.mc.util.IF.Utils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String0 Normal (clear all) 1 bold 2 dim 4 underline 5 blink 7 reverse 8 blank 9 overstrike 22 normal intensity (cancel bold and blank) 24 underline off 25 blink off 27 reverse off 28 blank off 29 overstrike off 30 black 31 red 32 green 33 yellow 34 blue 35 magenta 36 cyan 37 white 40 black background 41 red background 42 green backgroundstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbiggerAndSet(AtomicInteger v1, int v2) Atomically set v1 to a bigger value v2 in a non-blocking manner.static Stringstatic StringcoloredText(Utils.Color color, String text) static BigIntegermyMathPower(int base, int exponent) static longmyPower(int base, int exponent) static StringoverstrikeText(String text) static Collection<? extends Object> subtract(Collection<? extends Object> minuend, Collection<? extends Object> subtrahend) static StringunderlineText(String text)
-
Field Details
-
ANSI_RESET
0 Normal (clear all) 1 bold 2 dim 4 underline 5 blink 7 reverse 8 blank 9 overstrike 22 normal intensity (cancel bold and blank) 24 underline off 25 blink off 27 reverse off 28 blank off 29 overstrike off 30 black 31 red 32 green 33 yellow 34 blue 35 magenta 36 cyan 37 white 40 black background 41 red background 42 green background
- See Also:
-
ANSI_BLACK
- See Also:
-
ANSI_BOLD
- See Also:
-
ANSI_RED
- See Also:
-
ANSI_GREEN
- See Also:
-
ANSI_YELLOW
- See Also:
-
ANSI_BLUE
- See Also:
-
ANSI_PURPLE
- See Also:
-
ANSI_CYAN
- See Also:
-
ANSI_WHITE
- See Also:
-
ANSI_UNDERLINE
- See Also:
-
ANSI_UNDERLINE_OFF
- See Also:
-
ANSI_OVERSTRIKE
- See Also:
-
ANSI_OVERSTRIKE_OFF
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
overstrikeText
-
boldText
-
underlineText
-
coloredText
-
subtract
public static Collection<? extends Object> subtract(Collection<? extends Object> minuend, Collection<? extends Object> subtrahend) - Parameters:
minuend-subtrahend-- Returns:
- A collection subtraction:
{minuend} - {subtrahend}
-
biggerAndSet
Atomically set v1 to a bigger value v2 in a non-blocking manner.- Parameters:
v1-v2-
-
myPower
public static long myPower(int base, int exponent) -
myMathPower
-