# Classes Available fields and methods and examples on how to use them # Object
Parent class of all Java objects.
##### Parent None (and itself at the same time, don't question it) #### Variables and Functions**Name** | **Type** | **Info** |
toString() | [String](https://mods.latvian.dev/books/kubejs/page/string) | Tag collection type. |
equals(Object other) | [boolean](https://mods.latvian.dev/books/kubejs/page/primitive-types) | Checks equality with another object. |
hashCode() | [int](https://mods.latvian.dev/books/kubejs/page/primitive-types) | Hash code of this object. It is used to optimize maps and other things, should never be used for object equality. |
class | [Class](https://mods.latvian.dev/books/kubejs/page/object) | Object's type/class. |
Class of string objects, such as "abc" (and in JS 'abc' works as well)
##### Parent [Object](https://mods.latvian.dev/books/kubejs/page/object) #### Variables and Functions**Name** | **Type** | **Info** |
empty | [boolean](https://mods.latvian.dev/books/kubejs/page/primitive-types) | Returns if string is empty a.k.a `string === ''` |
toLowerCase() | [String](https://mods.latvian.dev/books/kubejs/page/string) | Returns a copy of this string, but with all characters in upper case |
toUpperCase() | [String](https://mods.latvian.dev/books/kubejs/page/string) | Returns a copy of this string, but with all characters in lower case |
equalsIgnoseCase([String](https://mods.latvian.dev/books/kubejs/page/string "String") other) | [boolean](https://mods.latvian.dev/books/kubejs/page/primitive-types "Primitive Types") | Hash code of this object. It is used to optimize maps and other things, should never be used for object equality. |
length() | [int](https://mods.latvian.dev/books/kubejs/page/primitive-types) | Number of characters |
charAt([int](https://mods.latvian.dev/books/kubejs/page/primitive-types) index) | [char](https://mods.latvian.dev/books/kubejs/page/primitive-types) | Single character at index |
Type | Java class | Info |
void | Void | No type |
byte | Byte | 8 bit decimal number. |
short | Short | 16 bit decimal number. |
int | Integer | 32 bit decimal number, most common decimal type. |
long | Long | 64 bit decimal number. |
float | Float | 32 bit floating point number. |
double | Double | 64 bit floating point number. |
char | Character | Single character in [String](https://mods.latvian.dev/books/kubejs/page/string) such as `'a'` or `'-'`. |
boolean | Boolean | Only `true` and `false` values. Can be checked in if function without comparing to true, as `if (x)` or `if (!x)` instead of `if (x == true)` or `if (x == false)`. |