Package org.apache.logging.log4j
Class ThreadContext.NoOpThreadContextStack
- java.lang.Object
-
- java.util.AbstractCollection<java.lang.String>
-
- org.apache.logging.log4j.ThreadContext.EmptyThreadContextStack
-
- org.apache.logging.log4j.ThreadContext.NoOpThreadContextStack
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.lang.String>,java.util.Collection<java.lang.String>,ThreadContextStack,ThreadContext.ContextStack
- Enclosing class:
- ThreadContext
private static final class ThreadContext.NoOpThreadContextStack extends ThreadContext.EmptyThreadContextStack
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNoOpThreadContextStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.String ignored)booleanaddAll(java.util.Collection<? extends java.lang.String> ignored)voidpush(java.lang.String ignored)Pushes an element onto the stack.booleanremove(java.lang.Object ignored)booleanremoveAll(java.util.Collection<?> ignored)booleanretainAll(java.util.Collection<?> ignored)-
Methods inherited from class org.apache.logging.log4j.ThreadContext.EmptyThreadContextStack
asList, clear, containsAll, copy, equals, getDepth, getImmutableStackOrNull, hashCode, iterator, peek, pop, size, toArray, trim
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
add
public boolean add(java.lang.String ignored)
- Specified by:
addin interfacejava.util.Collection<java.lang.String>- Overrides:
addin classThreadContext.EmptyThreadContextStack
-
addAll
public boolean addAll(java.util.Collection<? extends java.lang.String> ignored)
- Specified by:
addAllin interfacejava.util.Collection<java.lang.String>- Overrides:
addAllin classThreadContext.EmptyThreadContextStack
-
push
public void push(java.lang.String ignored)
Description copied from interface:ThreadContext.ContextStackPushes an element onto the stack.- Specified by:
pushin interfaceThreadContext.ContextStack- Overrides:
pushin classThreadContext.EmptyThreadContextStack- Parameters:
ignored- The element to add.
-
remove
public boolean remove(java.lang.Object ignored)
- Specified by:
removein interfacejava.util.Collection<java.lang.String>- Overrides:
removein classjava.util.AbstractCollection<java.lang.String>
-
removeAll
public boolean removeAll(java.util.Collection<?> ignored)
- Specified by:
removeAllin interfacejava.util.Collection<java.lang.String>- Overrides:
removeAllin classThreadContext.EmptyThreadContextStack
-
retainAll
public boolean retainAll(java.util.Collection<?> ignored)
- Specified by:
retainAllin interfacejava.util.Collection<java.lang.String>- Overrides:
retainAllin classThreadContext.EmptyThreadContextStack
-
-