org.springframework.social.evernote.api.impl
Class ThriftWrapper

java.lang.Object
  extended by org.springframework.social.evernote.api.impl.ThriftWrapper

public class ThriftWrapper
extends Object

Author:
Tadaya Tsuyukubo

Nested Class Summary
static interface ThriftWrapper.ThriftWrapperProxyMarker
          Marker interface for ThriftWrapper created proxy.
 
Constructor Summary
ThriftWrapper()
           
 
Method Summary
static boolean isNullSafeProxy(Object target)
           
static
<T> T
makeNullSafe(T source)
          Returns null-safe collection proxy for thrift generated class.
static
<T> T
unwrap(T source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftWrapper

public ThriftWrapper()
Method Detail

makeNullSafe

public static <T> T makeNullSafe(T source)
Returns null-safe collection proxy for thrift generated class.

Type Parameters:
T -
Parameters:
source - thrift generated instance
Returns:
a wrapped proxy

unwrap

public static <T> T unwrap(T source)

isNullSafeProxy

public static boolean isNullSafeProxy(Object target)


Copyright © 2014. All Rights Reserved.