Package burp.api.montoya.persistence
Interface Preferences
public interface Preferences
Allows data to be stored and accessed from the java preference store. It has support for primitives.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all keys currently mapped forBooleanvalues.byteKeys()Retrieve all keys currently mapped forBytevalues.voiddeleteBoolean(String key) Removes the mapping from the specified key to theBoolean.voiddeleteByte(String key) Removes the mapping from the specified key to theByte.voiddeleteInteger(String key) Removes the mapping from the specified key to theInteger.voiddeleteLong(String key) Removes the mapping from the specified key to theLong.voiddeleteShort(String key) Removes the mapping from the specified key to theShort.voiddeleteString(String key) Removes the mapping from the specified key to theString.getBoolean(String key) Booleanassociated with the specified key, ornullif this map contains no mapping for the key.Byteassociated with the specified key, ornullif this map contains no mapping for the key.getInteger(String key) Integerassociated with the specified key, ornullif this map contains no mapping for the key.Longassociated with the specified key, orOptional.empty()} if this map contains no mapping for the key.Shortassociated with the specified key, ornullif this map contains no mapping for the key.Stringassociated with the specified key, ornullif this map contains no mapping for the key.Retrieve all keys currently mapped forIntegervalues.longKeys()Retrieve all keys currently mapped forLongvalues.voidsetBoolean(String key, boolean value) Associates the specifiedbooleanwith the specified key in this map (optional operation).voidAssociates the specifiedbytewith the specified key in this map (optional operation).voidsetInteger(String key, int value) Associates the specifiedintwith the specified key in this map (optional operation).voidAssociates the specifiedlongwith the specified key in this map (optional operation).voidAssociates the specified short with the specified key in this map (optional operation).voidAssociates the specifiedStringwith the specified key in this map (optional operation).Retrieve all keys currently mapped forShortvalues.Retrieve all keys currently mapped forStringvalues.
-
Method Details
-
getString
Stringassociated with the specified key, ornullif 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
nullif this map contains no mapping for the key
-
setString
Associates the specifiedStringwith the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- 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 forStringvalues.- Returns:
- Set of keys.
-
getBoolean
Booleanassociated with the specified key, ornullif 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
nullif this map contains no mapping for the key
-
setBoolean
Associates the specifiedbooleanwith the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified key will be 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 forBooleanvalues.- Returns:
- Set of keys.
-
getByte
Byteassociated with the specified key, ornullif 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
nullif this map contains no mapping for the key
-
setByte
Associates the specifiedbytewith the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified key will be 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 forBytevalues.- Returns:
- Set of keys.
-
getShort
Shortassociated with the specified key, ornullif 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
nullif this map contains no mapping for the key
-
setShort
Associates the specified short with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified key will be 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 forShortvalues.- Returns:
- Set of keys.
-
getInteger
Integerassociated with the specified key, ornullif 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
nullif this map contains no mapping for the key
-
setInteger
Associates the specifiedintwith the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified key will be 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 forIntegervalues.- Returns:
- Set of keys.
-
getLong
Longassociated with the specified key, orOptional.empty()} 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
nullif this map contains no mapping for the key
-
setLong
Associates the specifiedlongwith the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified key will be 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 forLongvalues.- Returns:
- Set of keys.
-