com.google.caliper.util
Class Util

java.lang.Object
  extended by com.google.caliper.util.Util

public final class Util
extends Object


Field Summary
static com.google.gson.Gson GSON
           
 
Method Summary
static void forceGc()
           
static boolean isPublic(Member member)
           
static boolean isStatic(Member member)
           
static Class<?> lenientClassForName(String className)
           
static com.google.common.collect.ImmutableMap<String,String> loadProperties(com.google.common.io.InputSupplier<? extends InputStream> is)
           
static
<T> com.google.common.collect.ImmutableMap<String,T>
prefixedSubmap(Map<String,T> props, String prefix)
           
static com.google.common.io.InputSupplier<InputStream> resourceSupplier(Class<?> c, String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GSON

public static final com.google.gson.Gson GSON
Method Detail

lenientClassForName

public static Class<?> lenientClassForName(String className)
                                    throws ClassNotFoundException
Throws:
ClassNotFoundException

loadProperties

public static com.google.common.collect.ImmutableMap<String,String> loadProperties(com.google.common.io.InputSupplier<? extends InputStream> is)
                                                                            throws IOException
Throws:
IOException

resourceSupplier

public static com.google.common.io.InputSupplier<InputStream> resourceSupplier(Class<?> c,
                                                                               String name)

prefixedSubmap

public static <T> com.google.common.collect.ImmutableMap<String,T> prefixedSubmap(Map<String,T> props,
                                                                                  String prefix)

isPublic

public static boolean isPublic(Member member)

isStatic

public static boolean isStatic(Member member)

forceGc

public static void forceGc()


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.