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
Removes the mapping from the specified key to theString
.- Parameters:
key
- The key whose mapping is to be deleted.
-
stringKeys
Retrieve all keys currently mapped forString
values.- Returns:
- Set of keys.
-
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
Removes the mapping from the specified key to theBoolean
.- Parameters:
key
- The key whose mapping is to be deleted.
-
booleanKeys
Retrieve all keys currently mapped forBoolean
values.- Returns:
- Set of keys.
-
getByte
Byte
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.
-
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
Removes the mapping from the specified key to theByte
.- Parameters:
key
- The key whose mapping is to be deleted.
-
byteKeys
Retrieve all keys currently mapped forByte
values.- Returns:
- Set of keys.
-
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
Removes the mapping from the specified key to theShort
.- Parameters:
key
- The key whose mapping is to be deleted.
-
shortKeys
Retrieve all keys currently mapped forShort
values.- Returns:
- Set of keys.
-
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
Removes the mapping from the specified key to theInteger
.- Parameters:
key
- The key whose mapping is to be deleted.
-
integerKeys
Retrieve all keys currently mapped forInteger
values.- Returns:
- Set of keys.
-
getLong
Long
associated with the specified key, ornull
} 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.
-
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
Removes the mapping from the specified key to theLong
.- Parameters:
key
- The key whose mapping is to be deleted.
-
longKeys
Retrieve all keys currently mapped forLong
values.- Returns:
- Set of keys.
-