Top Description Fields Constructors Methods
org.slf4j.helpers

public Class ThreadLocalMapOfStacks

extends Object
Class Inheritance
Imports
java.util.ArrayDeque, .Deque, .HashMap, .Map

A simple implementation of ThreadLocal backed Map containing values of type Deque.
Author
Ceki Guuml;cü
Since
2.0.0

Field Summary

Modifier and TypeField and Description
pack-priv final ThreadLocal<Map<String, Deque<String>>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clearDequeByKey(String
identifies the stack
key
)

Clear the deque(stack) referenced by 'key'.

public Deque<String>
public String
public void
pushByKey(String key, String value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tlMapOfStacksback to summary
pack-priv final ThreadLocal<Map<String, Deque<String>>> tlMapOfStacks

Constructor Detail

ThreadLocalMapOfStacksback to summary
public ThreadLocalMapOfStacks()

Method Detail

clearDequeByKeyback to summary
public void clearDequeByKey(String key)

Clear the deque(stack) referenced by 'key'.

Parameters
key:String

identifies the stack

Since
2.0.0
getCopyOfDequeByKeyback to summary
public Deque<String> getCopyOfDequeByKey(String key)
popByKeyback to summary
public String popByKey(String key)
pushByKeyback to summary
public void pushByKey(String key, String value)