A B C D E G H I L M O P R S T U V W Y 
All Classes All Packages

A

add(E) - Method in class dev.netcode.util.LimitedQueue
 
applySha256(String) - Static method in class dev.netcode.util.StringUtils
Applies the SHA-256 algorithm to the given input.

B

BG_BLACK - dev.netcode.util.LogColor
Sets background color to black
BLACK - dev.netcode.util.LogColor
Sets text color to black
BLUE - dev.netcode.util.LogColor
Sets text color to blue
BRIGHT_BLACK - dev.netcode.util.LogColor
Sets text color to dark gray
BRIGHT_BLUE - dev.netcode.util.LogColor
Sets text color to brighter blue
BRIGHT_CYAN - dev.netcode.util.LogColor
Sets text color to brighter cyan
BRIGHT_GREEN - dev.netcode.util.LogColor
Sets text color to brighter green
BRIGHT_MAGENTA - dev.netcode.util.LogColor
Sets text color to brighter magenta
BRIGHT_ORANGE - dev.netcode.util.LogColor
Sets text color to brighter orange
BRIGHT_PURPLE - dev.netcode.util.LogColor
Sets text color to brighter purple
BRIGHT_RED - dev.netcode.util.LogColor
Sets text color to brighter red
BRIGHT_WHITE - dev.netcode.util.LogColor
Sets text color to brighter white
BRIGHT_YELLOW - dev.netcode.util.LogColor
Sets text color to brighter yellow
bytesToHex(byte[]) - Static method in class dev.netcode.util.StringUtils
Converts a byte array to hexadecimal represented String

C

chunkInsert(String, int, char) - Static method in class dev.netcode.util.StringUtils
Inserts a char into a string after every n chars.
CYAN - dev.netcode.util.LogColor
Sets text color to cyan

D

DARK_BLUE - dev.netcode.util.LogColor
Sets text color to darker blue
DARK_CYAN - dev.netcode.util.LogColor
Sets text color to darker cyan
DARK_GREEN - dev.netcode.util.LogColor
Sets text color to darker green
DARK_MAGENTA - dev.netcode.util.LogColor
Sets text color to darker magenta
DARK_ORANGE - dev.netcode.util.LogColor
Sets text color to darker orange
DARK_PURPLE - dev.netcode.util.LogColor
Sets text color to darker purple
DARK_RED - dev.netcode.util.LogColor
Sets text color to darker red
DARK_WHITE - dev.netcode.util.LogColor
Sets text color to light gray
DARK_YELLOW - dev.netcode.util.LogColor
Sets text color to darker yellow
decodeURL(String) - Static method in class dev.netcode.util.StringUtils
Decodes escaped special chars from URLs like '%20' to their UTF-8 counterpart
dev.netcode.util - module dev.netcode.util
This module contains utility functions for java projects including logging and string utilities
dev.netcode.util - package dev.netcode.util
 

E

ERROR - dev.netcode.util.LogLevel
Should be used when exceptions occur or invalid data was used

G

get() - Method in class dev.netcode.util.Result
 
getCaller() - Static method in class dev.netcode.util.Utils
This function returns the name of the class that contained the function that called this function (think about it. it makes sense).
getCaller(int) - Static method in class dev.netcode.util.Utils
This function returns the name of the class that contained the function that called this function (think about it. it makes sense).
getDate() - Static method in class dev.netcode.util.Utils
 
getError() - Method in class dev.netcode.util.Result
 
getFileExtension(File) - Static method in class dev.netcode.util.StringUtils
Returns the file extension of a file.
getTime() - Static method in class dev.netcode.util.Utils
 
GREEN - dev.netcode.util.LogColor
Sets text color to green

H

hexStringToByteArray(String) - Static method in class dev.netcode.util.StringUtils
Converts a hexadecimal string to byte array
hexToString(String) - Static method in class dev.netcode.util.StringUtils
Decodes a hexadecimal string

I

IMPORTANT - dev.netcode.util.LogLevel
Should be used to inform the user with higher draw of attention
INFO - dev.netcode.util.LogLevel
Should be used to inform the user

L

LimitedQueue<E> - Class in dev.netcode.util
 
LimitedQueue(int) - Constructor for class dev.netcode.util.LimitedQueue
 
log(LogLevel, String) - Method in class dev.netcode.util.Logger
Logs a message with the specified loglevel to the desired location
log(LogMessage) - Method in class dev.netcode.util.Logger
Logs a message from LogMessage object to the desired location
LogColor - Enum in dev.netcode.util
Contains prefixes to change the color of the text inside the console
Logger - Class in dev.netcode.util
An abstract Class to generalize Logging
Logger() - Constructor for class dev.netcode.util.Logger
Creates Logger object
LogLevel - Enum in dev.netcode.util
Represents different log levels to group messages by their importancy
LogMessage - Class in dev.netcode.util
Represents a message which should be logged to an implementation of Logger.
Includes at least the LogLevel and message.
LogMessage(LogLevel, String) - Constructor for class dev.netcode.util.LogMessage
Instatiates LogMessage setting stacktrace offset to 0
LogMessage(LogLevel, String, int) - Constructor for class dev.netcode.util.LogMessage
Instatiates LogMessage and sets given stacktrace offset
LogMessage(LogLevel, String, int, StackTraceElement[]) - Constructor for class dev.netcode.util.LogMessage
Instantiates LogMessage and sets stacktrace offset and stacktrace to given variables
LogMessage(LogLevel, String, StackTraceElement[]) - Constructor for class dev.netcode.util.LogMessage
Instantiates LogMessage and sets stacktrace offset to 0 and stacktrace array to given

M

MAGENTA - dev.netcode.util.LogColor
Sets text color to magenta

O

ORANGE - dev.netcode.util.LogColor
Sets text color to orange

P

padLeft(String, int) - Static method in class dev.netcode.util.StringUtils
This class adds spaces to the end of the given string so that the total length of the string is equal to totalLength.
padRight(String, int) - Static method in class dev.netcode.util.StringUtils
This class adds spaces to the begin of the given string so that the total length of the string is equal to totalLength.
PURPLE - dev.netcode.util.LogColor
Sets text color to purple

R

readFileData(File, int) - Static method in class dev.netcode.util.StringUtils
Reads file into byte array
RED - dev.netcode.util.LogColor
Sets text color to red
RESET - dev.netcode.util.LogColor
Resets the console color to default
Result<T> - Class in dev.netcode.util
Instances of this class can be used when a function may encounter an error and wants to display the error message but you want to manually display it.
Result(T, String) - Constructor for class dev.netcode.util.Result
Instantiates Result and sets either the value or error.
Only one of both can be set, error is preferred to prevent unexpected behavior.

S

saveToFile(Path, String) - Static method in class dev.netcode.util.StringUtils
Saves a string to a file
SERVER - dev.netcode.util.LogLevel
Can be used to indicate the following message to be sent by a server
splitStringEvery(String, int) - Static method in class dev.netcode.util.StringUtils
splits a given string into parts of maximum length of interval
stringToMap(String) - Static method in class dev.netcode.util.StringUtils
Translates a String in the form of key=value&key2=value2... to a HashMap.
StringUtils - Class in dev.netcode.util
This class contains functions to generate, manipulate or use Strings
StringUtils() - Constructor for class dev.netcode.util.StringUtils
 

T

toString() - Method in enum dev.netcode.util.LogColor
 

U

Utils - Class in dev.netcode.util
This class contains some different functions so that you dont need to implement them
Utils() - Constructor for class dev.netcode.util.Utils
 

V

valueOf(String) - Static method in enum dev.netcode.util.LogColor
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dev.netcode.util.LogLevel
Returns the enum constant of this type with the specified name.
values() - Static method in enum dev.netcode.util.LogColor
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dev.netcode.util.LogLevel
Returns an array containing the constants of this enum type, in the order they are declared.

W

WARNING - dev.netcode.util.LogLevel
Should be used to warn the user to pay attention
wasSuccessful() - Method in class dev.netcode.util.Result
 
WHITE - dev.netcode.util.LogColor
Sets text color to white

Y

YELLOW - dev.netcode.util.LogColor
Sets text color to yellow
A B C D E G H I L M O P R S T U V W Y 
All Classes All Packages