Package burp.api.montoya.persistence
Interface Preferences
public interface Preferences
Enables data to be stored and accessed from the Java preference store. Supports primitives.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all keys currently mapped forBoolean
values.byteKeys()
Retrieve all keys currently mapped forByte
values.void
deleteBoolean
(String key) Removes the mapping from the specified key to theBoolean
.void
deleteByte
(String key) Removes the mapping from the specified key to theByte
.void
deleteInteger
(String key) Removes the mapping from the specified key to theInteger
.void
deleteLong
(String key) Removes the mapping from the specified key to theLong
.void
deleteShort
(String key) Removes the mapping from the specified key to theShort
.void
deleteString
(String key) Removes the mapping from the specified key to theString
.getBoolean
(String key) Boolean
associated with the specified key.Byte
associated with the specified key.getInteger
(String key) Integer
associated with the specified key.Long
associated with the specified key, ornull
} if this map contains no mapping for the key.Short
associated with the specified key.String
associated with the specified key.Retrieve all keys currently mapped forInteger
values.longKeys()
Retrieve all keys currently mapped forLong
values.void
setBoolean
(String key, boolean value) Associates the specifiedboolean
with the specified key in this map.void
Associates the specifiedbyte
with the specified key in this map.void
setInteger
(String key, int value) Associates the specifiedint
with the specified key in this map.void
Associates the specifiedlong
with the specified key in this map.void
Associates the specified short with the specified key in this map.void
Associates the specifiedString
with the specified key in this map.Retrieve all keys currently mapped forShort
values.Retrieve all keys currently mapped forString
values.
-
Method Details
-
getString
String
associated with the specified key. Returnsnull
if this map contains no mapping for the key.- Parameters:
key
- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
null
if this map contains no mapping for the key.
-
setString
Associates the specifiedString
with the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key.
-
deleteString
-
stringKeys
-
getBoolean
Boolean
associated with the specified key. Returnsnull
if this map contains no mapping for the key.- Parameters:
key
- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
null
if this map contains no mapping for the key.
-
setBoolean
Associates the specifiedboolean
with the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key. If this value isnull
then any value that is currently mapped to the specified key is removed.
-
deleteBoolean
-
booleanKeys
-
getByte
-
setByte
Associates the specifiedbyte
with the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key. If this value isnull
then any value that is currently mapped to the specified key is removed.
-
deleteByte
-
byteKeys
-
getShort
Short
associated with the specified key. Returnsnull
if this map contains no mapping for the key.- Parameters:
key
- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
null
if this map contains no mapping for the key.
-
setShort
Associates the specified short with the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key. If this value isnull
then any value that is currently mapped to the specified key is removed.
-
deleteShort
-
shortKeys
-
getInteger
Integer
associated with the specified key. Returnsnull
if this map contains no mapping for the key.- Parameters:
key
- The key whose associated value is to be returned.- Returns:
- The value associated with the specified key, or
null
if this map contains no mapping for the key.
-
setInteger
Associates the specifiedint
with the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key. If this value isnull
then any value that is currently mapped to the specified key is removed.
-
deleteInteger
-
integerKeys
-
getLong
-
setLong
Associates the specifiedlong
with the specified key in this map. This is an optional operation. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key. If this value isnull
then any value currently mapped to the specified key is removed.
-
deleteLong
-
longKeys
-