Sync with L2JServer Jan 28th 2015.
This commit is contained in:
@ -18,6 +18,8 @@
|
||||
*/
|
||||
package com.l2jserver.gameserver.model.interfaces;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
/**
|
||||
* More advanced interface for parsers.<br>
|
||||
* Allows usage of get methods without fall back value.<br>
|
||||
@ -42,6 +44,8 @@ public interface IParserAdvUtils extends IParserUtils
|
||||
|
||||
public String getString(String key);
|
||||
|
||||
public Duration getDuration(String key);
|
||||
|
||||
public <T extends Enum<T>> T getEnum(String key, Class<T> clazz);
|
||||
|
||||
}
|
||||
|
@ -18,6 +18,8 @@
|
||||
*/
|
||||
package com.l2jserver.gameserver.model.interfaces;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
/**
|
||||
* Simple interface for parser, enforces of a fall back value.<br>
|
||||
* More suitable for developers not sure about their data.<br>
|
||||
@ -41,5 +43,7 @@ public interface IParserUtils
|
||||
|
||||
public String getString(String key, String defaultValue);
|
||||
|
||||
public Duration getDuration(String key, Duration defaultValue);
|
||||
|
||||
public <T extends Enum<T>> T getEnum(String key, Class<T> clazz, T defaultValue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user