Package org.bitcoinj.utils
Class BaseTaggableObject
java.lang.Object
org.bitcoinj.utils.BaseTaggableObject
- All Implemented Interfaces:
TaggableObject
- Direct Known Subclasses:
Wallet
Deprecated.
Applications should use another mechanism to persist application state data
A simple implementation of
TaggableObject
that uses a hashmap that is
synchronized on this object's Java monitor.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteString
Deprecated.getTags()
Deprecated.com.google.protobuf.ByteString
maybeGetTag
(String tag) Deprecated.void
Deprecated.
-
Field Details
-
tags
Deprecated.
-
-
Constructor Details
-
BaseTaggableObject
public BaseTaggableObject()Deprecated.
-
-
Method Details
-
maybeGetTag
Deprecated.Description copied from interface:TaggableObject
Returns the immutable byte array associated with the given tag name, or null if there is none.- Specified by:
maybeGetTag
in interfaceTaggableObject
-
getTag
Deprecated.Description copied from interface:TaggableObject
Returns the immutable byte array associated with the given tag name, or throwsIllegalArgumentException
if that tag wasn't set yet.- Specified by:
getTag
in interfaceTaggableObject
-
setTag
Deprecated.Description copied from interface:TaggableObject
Associates the given immutable byte array with the string tag. See the docs for TaggableObject to learn more.- Specified by:
setTag
in interfaceTaggableObject
-
getTags
Deprecated.Description copied from interface:TaggableObject
Returns a copy of all the tags held by this object.- Specified by:
getTags
in interfaceTaggableObject
-