Class DummyProxy

  • Direct Known Subclasses:
    ClassSanityTester.SerializableDummyProxy

    abstract class DummyProxy
    extends java.lang.Object
    Generates a dummy interface proxy that simply returns a dummy value for each method.
    • Constructor Summary

      Constructors 
      Constructor Description
      DummyProxy()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract <R> R dummyReturnValue​(TypeToken<R> returnType)
      Returns the dummy return value for returnType.
      (package private) <T> T newProxy​(TypeToken<T> interfaceType)
      Returns a new proxy for interfaceType.
      • Methods inherited from class java.lang.Object

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

      • DummyProxy

        DummyProxy()
    • Method Detail

      • newProxy

        final <T> T newProxy​(TypeToken<T> interfaceType)
        Returns a new proxy for interfaceType. Proxies of the same interface are equal to each other if the DummyProxy instance that created the proxies are equal.
      • dummyReturnValue

        abstract <R> R dummyReturnValue​(TypeToken<R> returnType)
        Returns the dummy return value for returnType.