Class Contexts.ChainContext

  • All Implemented Interfaces:
    Context, Wrapper
    Enclosing class:
    Contexts

    private static final class Contexts.ChainContext
    extends java.lang.Object
    implements Context
    Context that wraps a chain of contexts.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) com.google.common.collect.ImmutableList<Context> contexts  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChainContext​(com.google.common.collect.ImmutableList<Context> contexts)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T unwrap​(java.lang.Class<T> clazz)
      Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • contexts

        final com.google.common.collect.ImmutableList<Context> contexts
    • Constructor Detail

      • ChainContext

        ChainContext​(com.google.common.collect.ImmutableList<Context> contexts)
    • Method Detail

      • unwrap

        public <T> T unwrap​(java.lang.Class<T> clazz)
        Description copied from interface: Wrapper
        Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
        Specified by:
        unwrap in interface Wrapper