Package org.bitcoinj.utils
Class BaseTaggableObject
- java.lang.Object
 - 
- org.bitcoinj.utils.BaseTaggableObject
 
 
- 
- All Implemented Interfaces:
 TaggableObject
- Direct Known Subclasses:
 Wallet
@Deprecated public class BaseTaggableObject extends java.lang.Object implements TaggableObject
Deprecated.Applications should use another mechanism to persist application state dataA simple implementation ofTaggableObjectthat uses a hashmap that is synchronized on this object's Java monitor. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,com.google.protobuf.ByteString>tagsDeprecated. 
- 
Constructor Summary
Constructors Constructor Description BaseTaggableObject()Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.google.protobuf.ByteStringgetTag(java.lang.String tag)Deprecated.java.util.Map<java.lang.String,com.google.protobuf.ByteString>getTags()Deprecated.com.google.protobuf.ByteStringmaybeGetTag(java.lang.String tag)Deprecated.voidsetTag(java.lang.String tag, com.google.protobuf.ByteString value)Deprecated. 
 - 
 
- 
- 
Method Detail
- 
maybeGetTag
@Nullable @Deprecated public com.google.protobuf.ByteString maybeGetTag(java.lang.String tag)
Deprecated.Description copied from interface:TaggableObjectReturns the immutable byte array associated with the given tag name, or null if there is none.- Specified by:
 maybeGetTagin interfaceTaggableObject
 
- 
getTag
@Deprecated public com.google.protobuf.ByteString getTag(java.lang.String tag)
Deprecated.Description copied from interface:TaggableObjectReturns the immutable byte array associated with the given tag name, or throwsIllegalArgumentExceptionif that tag wasn't set yet.- Specified by:
 getTagin interfaceTaggableObject
 
- 
setTag
@Deprecated public void setTag(java.lang.String tag, com.google.protobuf.ByteString value)Deprecated.Description copied from interface:TaggableObjectAssociates the given immutable byte array with the string tag. See the docs for TaggableObject to learn more.- Specified by:
 setTagin interfaceTaggableObject
 
- 
getTags
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.ByteString> getTags()
Deprecated.Description copied from interface:TaggableObjectReturns a copy of all the tags held by this object.- Specified by:
 getTagsin interfaceTaggableObject
 
 - 
 
 -