plugin / com.github.shadowsocks.plugin / PluginOptions

PluginOptions

class PluginOptions : HashMap<String, String?>

Helper class for processing plugin options.

Based on: https://github.com/apache/ant/blob/588ce1f/src/main/org/apache/tools/ant/types/Commandline.java

Constructors

<init>

PluginOptions()
PluginOptions(initialCapacity: Int)
PluginOptions(initialCapacity: Int, loadFactor: Float)
PluginOptions(options: String?)
PluginOptions(id: String, options: String?)

Properties

id

var id: String

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

putWithDefault

fun putWithDefault(key: String, value: String?, default: String? = null): String?

Put but if value is null or default, the entry is deleted.

toString

fun toString(trimId: Boolean): String
fun toString(): String