File tree Expand file tree Collapse file tree 10 files changed +10
-10
lines changed
src/main/java/ru/abstractmenus/hocon/api/serialize Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77group ' ru.abstractmenus'
8- version ' 1.0'
8+ version ' 1.0.1 '
99
1010repositories {
1111 mavenCentral()
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ public interface NodeSerializer<T> {
1515 * @return Deserialized value
1616 * @throws NodeSerializeException if value cannot be deserialized
1717 */
18- T deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException ;
18+ T deserialize (Class <T > type , ConfigNode node ) throws NodeSerializeException ;
1919
2020}
Original file line number Diff line number Diff line change 88public class BooleanSerializer implements NodeSerializer <Boolean > {
99
1010 @ Override
11- public Boolean deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
11+ public Boolean deserialize (Class <Boolean > type , ConfigNode node ) throws NodeSerializeException {
1212 Preconditions .checkNodeNull (node );
1313 Object obj = node .rawValue ();
1414 return obj instanceof Boolean ? (Boolean ) obj : obj .toString ().equalsIgnoreCase ("true" );
Original file line number Diff line number Diff line change 88public class DoubleSerializer implements NodeSerializer <Double > {
99
1010 @ Override
11- public Double deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
11+ public Double deserialize (Class <Double > type , ConfigNode node ) throws NodeSerializeException {
1212 Preconditions .checkNodeNull (node );
1313 Object obj = node .rawValue ();
1414 if (obj instanceof Double ) return (Double ) obj ;
Original file line number Diff line number Diff line change 88public class FloatSerializer implements NodeSerializer <Float > {
99
1010 @ Override
11- public Float deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
11+ public Float deserialize (Class <Float > type , ConfigNode node ) throws NodeSerializeException {
1212 Preconditions .checkNodeNull (node );
1313 Object obj = node .rawValue ();
1414 if (obj instanceof Float ) return (Float ) obj ;
Original file line number Diff line number Diff line change 88public class IntegerSerializer implements NodeSerializer <Integer > {
99
1010 @ Override
11- public Integer deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
11+ public Integer deserialize (Class <Integer > type , ConfigNode node ) throws NodeSerializeException {
1212 Preconditions .checkNodeNull (node );
1313 Object obj = node .rawValue ();
1414 if (obj instanceof Integer ) return (Integer ) obj ;
Original file line number Diff line number Diff line change 1111public class ListSerializer implements NodeSerializer <List > {
1212
1313 @ Override
14- public List deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
14+ public List deserialize (Class <List > type , ConfigNode node ) throws NodeSerializeException {
1515 Preconditions .checkNodeNull (node );
1616 List list = new LinkedList ();
1717 for (ConfigNode el : node .childrenList ()) {
Original file line number Diff line number Diff line change 88public class LongSerializer implements NodeSerializer <Long > {
99
1010 @ Override
11- public Long deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
11+ public Long deserialize (Class <Long > type , ConfigNode node ) throws NodeSerializeException {
1212 Preconditions .checkNodeNull (node );
1313 Object obj = node .rawValue ();
1414 if (obj instanceof Long ) return (Long ) obj ;
Original file line number Diff line number Diff line change 88public class StringSerializer implements NodeSerializer <String > {
99
1010 @ Override
11- public String deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
11+ public String deserialize (Class <String > type , ConfigNode node ) throws NodeSerializeException {
1212 Preconditions .checkNodeNull (node );
1313 Object obj = node .rawValue ();
1414 if (obj instanceof String ) return (String ) obj ;
Original file line number Diff line number Diff line change 1010public class UuidSerializer implements NodeSerializer <UUID > {
1111
1212 @ Override
13- public UUID deserialize (Class <? > type , ConfigNode node ) throws NodeSerializeException {
13+ public UUID deserialize (Class <UUID > type , ConfigNode node ) throws NodeSerializeException {
1414 Preconditions .checkNodeNull (node );
1515 Object obj = node .rawValue ();
1616 if (obj instanceof UUID ) return (UUID ) obj ;
You can’t perform that action at this time.
0 commit comments