com.googlecode.hibernate.memcached
Class PropertiesHelper

java.lang.Object
  extended by com.googlecode.hibernate.memcached.PropertiesHelper

public class PropertiesHelper
extends Object


Constructor Summary
PropertiesHelper(Properties properties)
           
 
Method Summary
 String findValue(String... keys)
           
 String get(String key)
           
 String get(String key, String defaultVal)
           
 boolean getBoolean(String key, boolean defaultVal)
           
 double getDouble(String key, double defaultVal)
           
<T extends Enum<T>>
T
getEnum(String key, Class<T> type, T defaultValue)
           
 int getInt(String key, int defaultVal)
           
 long getLong(String key, long defaultVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesHelper

public PropertiesHelper(Properties properties)
Method Detail

get

public String get(String key)

get

public String get(String key,
                  String defaultVal)

findValue

public String findValue(String... keys)

getBoolean

public boolean getBoolean(String key,
                          boolean defaultVal)

getLong

public long getLong(String key,
                    long defaultVal)

getInt

public int getInt(String key,
                  int defaultVal)

getDouble

public double getDouble(String key,
                        double defaultVal)

getEnum

public <T extends Enum<T>> T getEnum(String key,
                                     Class<T> type,
                                     T defaultValue)


Copyright © 2015. All rights reserved.