intellij-randomness / com.fwdekker.randomness

Package com.fwdekker.randomness

Contains classes shared by all sub-packages.

Types

Cache

class Cache<K, V>

A simple thread-safe cache of objects.

CapitalizationMode

enum class CapitalizationMode

A mode in which a word should be capitalized.

DataGroupAction

abstract class DataGroupAction : ActionGroup

A group of actions for a particular type of random data that can be generated.

DataInsertAction

abstract class DataInsertAction : AnAction

Inserts a randomly generated string at the positions of the event's editor's carets.

DataInsertArrayAction

abstract class DataInsertArrayAction : DataInsertAction

Inserts a randomly generated array of strings at the positions of the event's editor's carets.

PopupAction

class PopupAction : AnAction

Shows a popup for all available Randomness actions.

Settings

interface Settings<S> : PersistentStateComponent<S>

Superclass for classes that will contain settings that should persist over IDE restarts.

SettingsAction

abstract class SettingsAction : AnAction

Shows a modal dialog for changing settings.

SettingsDialog

abstract class SettingsDialog<S : Settings<*>> : DialogWrapper, SettingsManager<S>

Superclass for settings dialogs.

SettingsManager

interface SettingsManager<S : Settings<*>>

A SettingsManager is an object that can save and load settings.

Exceptions

DataGenerationException

class DataGenerationException : Exception

Thrown if a random datum could not be generated.

Functions

firstNonNull

fun <T : Any> firstNonNull(vararg values: T?): T?

Returns the first non-null value in values, or null if all values are null.