Filter

public class Filter<T extends Object>

shosetsu-kotlin-lib

Since

2020-01-31

Inheritors

Types

Link copied to clipboard
public final class Checkbox extends Filter<Boolean>

Input for boolean option Includes Separator

Link copied to clipboard
public final class Dropdown extends Filter<Int>

Input for a choice from a list Includes Separator

Link copied to clipboard
public final class FList extends Filter<Map<Int, Any>>

A collapsable list of filters Includes Separator

Link copied to clipboard
public final class Group<T extends Object> extends Filter<Map<Int, T>>

Input for a specific list of filters Includes Separator

Link copied to clipboard
public final class Header extends Filter<Unit>

Represents a header, used to separate different parts of filters/settings Includes Separator

Link copied to clipboard
public final class Password extends Filter<String>

Input for passwords

Link copied to clipboard
public final class RadioGroup extends Filter<Int>

Input for a choice from a list Includes Separator

Link copied to clipboard
public class Separator extends Filter<Unit>

Divides parts of the filters/settings

Link copied to clipboard
public final class Switch extends Filter<Boolean>

Input for boolean option Includes Separator

Link copied to clipboard
public final class Text extends Filter<String>

Input for text Includes Separator

Link copied to clipboard
public final class TriState extends Filter<Int>

Input for ternary value Includes Separator

Properties

Link copied to clipboard
private final Integer id

This is a unique calling card for the specific filter / setting. If the setting type is ever changed, the ID should be changed

Link copied to clipboard
private final String name

Name of the filer

Link copied to clipboard
private T state

State(s) of the filter stuff

Functions

Link copied to clipboard
public abstract Integer getId()

This is a unique calling card for the specific filter / setting. If the setting type is ever changed, the ID should be changed

Link copied to clipboard
public abstract String getName()

Name of the filer

Link copied to clipboard
public abstract T getState()

State(s) of the filter stuff

Link copied to clipboard
public abstract Unit setState(T state)

State(s) of the filter stuff

Link copied to clipboard
public String toString()