com.neeve.util
Class UtlDistinctProxy

java.lang.Object
  extended by com.neeve.util.UtlDistinctProxy
All Implemented Interfaces:
InvocationHandler

public class UtlDistinctProxy
extends Object
implements InvocationHandler

A proxy that exhibits instance equality semantics, but otherwise behaves exactly like the proxied object.

This class IS NOT intended to be used by end users.


Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static CharSequence of(CharSequence text)
           
static
<T> T
of(Class<T> type, T target)
          Note that only interface types may be proxied.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

public static <T> T of(Class<T> type,
                       T target)
Note that only interface types may be proxied.

Parameters:
type - The type to proxy
target - The target
Returns:
A proxy for the target.

of

public static CharSequence of(CharSequence text)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.