polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [39/52] [abbrv] polygene-java git commit: Minor parameter renames for conciseness
Date Sun, 02 Apr 2017 17:48:21 GMT
Minor parameter renames for conciseness

POLYGENE-231


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/7f700622
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/7f700622
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/7f700622

Branch: refs/heads/develop
Commit: 7f700622fae42e38d19b9a6c2f0136c7fd69fbb2
Parents: d3ec800
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon Mar 13 12:28:37 2017 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sun Apr 2 19:16:23 2017 +0200

----------------------------------------------------------------------
 .../javaxjson/JavaxJsonAdapter.java             |  8 ++---
 .../JavaxJsonSerializationService.java          | 34 ++++++++++----------
 .../javaxjson/CustomJsonAdapterTest.java        | 12 +++----
 .../serialization/javaxxml/JavaxXmlAdapter.java |  8 ++---
 .../javaxxml/JavaxXmlSerializationService.java  | 20 ++++++------
 .../msgpack/MessagePackAdapter.java             |  8 ++---
 .../MessagePackSerializationService.java        | 34 ++++++++++----------
 7 files changed, 62 insertions(+), 62 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonAdapter.java
----------------------------------------------------------------------
diff --git a/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonAdapter.java
b/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonAdapter.java
index d8ffcfa..99d5d80 100644
--- a/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonAdapter.java
+++ b/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonAdapter.java
@@ -38,17 +38,17 @@ public interface JavaxJsonAdapter<T>
      * Serialize.
      *
      * @param object Object to serialize, never null
-     * @param serializeFunction Serialization function for nested structure serialization
+     * @param serialize Serialization function for nested structure serialization
      * @return Serialized JSON representation
      */
-    JsonValue serialize( Object object, Function<Object, JsonValue> serializeFunction
);
+    JsonValue serialize( Object object, Function<Object, JsonValue> serialize );
 
     /**
      * Deserialize.
      *
      * @param json JSON to deserialize from, never null
-     * @param deserializeFunction Deserialization function for nested structure deserialization
+     * @param deserialize Deserialization function for nested structure deserialization
      * @return Deserialized object
      */
-    T deserialize( JsonValue json, BiFunction<JsonValue, ValueType, Object> deserializeFunction
);
+    T deserialize( JsonValue json, BiFunction<JsonValue, ValueType, Object> deserialize
);
 }

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonSerializationService.java
----------------------------------------------------------------------
diff --git a/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonSerializationService.java
b/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonSerializationService.java
index 4c43039..1968b92 100644
--- a/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonSerializationService.java
+++ b/core/spi/src/main/java/org/apache/polygene/serialization/javaxjson/JavaxJsonSerializationService.java
@@ -101,7 +101,7 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
         private static abstract class ToJsonStringAdapter<T> implements JavaxJsonAdapter<T>
         {
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return JavaxJson.toJsonString( object );
             }
@@ -113,7 +113,7 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<String> type() { return String.class; }
 
             @Override
-            public String deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public String deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 return JavaxJson.asString( json );
             }
@@ -125,7 +125,7 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Character> type() { return Character.class; }
 
             @Override
-            public Character deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Character deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 String string = JavaxJson.asString( json );
                 return string.isEmpty() ? null : string.charAt( 0 );
@@ -138,13 +138,13 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Boolean> type() { return Boolean.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return type().cast( object ) ? JsonValue.TRUE : JsonValue.FALSE;
             }
 
             @Override
-            public Boolean deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Boolean deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {
@@ -170,14 +170,14 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Integer> type() { return Integer.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return Json.createObjectBuilder().add( "value", type().cast( object ) ).build()
                            .getJsonNumber( "value" );
             }
 
             @Override
-            public Integer deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Integer deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {
@@ -200,14 +200,14 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Long> type() { return Long.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return Json.createObjectBuilder().add( "value", type().cast( object ) ).build().getJsonNumber(
                     "value" );
             }
 
             @Override
-            public Long deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Long deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {
@@ -230,14 +230,14 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Short> type() { return Short.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return Json.createObjectBuilder().add( "value", type().cast( object ) ).build()
                            .getJsonNumber( "value" );
             }
 
             @Override
-            public Short deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Short deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {
@@ -260,14 +260,14 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Byte> type() { return Byte.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return Json.createObjectBuilder().add( "value", type().cast( object ) ).build()
                            .getJsonNumber( "value" );
             }
 
             @Override
-            public Byte deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Byte deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {
@@ -290,14 +290,14 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Float> type() { return Float.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return Json.createObjectBuilder().add( "value", type().cast( object ) ).build()
                            .getJsonNumber( "value" );
             }
 
             @Override
-            public Float deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Float deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {
@@ -320,14 +320,14 @@ public interface JavaxJsonSerializationService extends JavaxJsonSerialization,
S
             public Class<Double> type() { return Double.class; }
 
             @Override
-            public JsonValue serialize( Object object, Function<Object, JsonValue>
serializeFunction )
+            public JsonValue serialize( Object object, Function<Object, JsonValue>
serialize )
             {
                 return Json.createObjectBuilder().add( "value", type().cast( object ) ).build()
                            .getJsonNumber( "value" );
             }
 
             @Override
-            public Double deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+            public Double deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
             {
                 switch( json.getValueType() )
                 {

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/extensions/serialization-javaxjson/src/test/java/org/apache/polygene/serialization/javaxjson/CustomJsonAdapterTest.java
----------------------------------------------------------------------
diff --git a/extensions/serialization-javaxjson/src/test/java/org/apache/polygene/serialization/javaxjson/CustomJsonAdapterTest.java
b/extensions/serialization-javaxjson/src/test/java/org/apache/polygene/serialization/javaxjson/CustomJsonAdapterTest.java
index bed0492..acd96b6 100644
--- a/extensions/serialization-javaxjson/src/test/java/org/apache/polygene/serialization/javaxjson/CustomJsonAdapterTest.java
+++ b/extensions/serialization-javaxjson/src/test/java/org/apache/polygene/serialization/javaxjson/CustomJsonAdapterTest.java
@@ -85,13 +85,13 @@ public class CustomJsonAdapterTest extends AbstractPolygeneTest
         public Class<CustomValue> type() { return CustomValue.class; }
 
         @Override
-        public JsonValue serialize( Object object, Function<Object, JsonValue> serializeFunction
)
+        public JsonValue serialize( Object object, Function<Object, JsonValue> serialize
)
         {
             return JavaxJson.toJsonString( type().cast( object ).state );
         }
 
         @Override
-        public CustomValue deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+        public CustomValue deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
         {
             switch( json.getValueType() )
             {
@@ -109,17 +109,17 @@ public class CustomJsonAdapterTest extends AbstractPolygeneTest
         public Class<CustomStructure> type() { return CustomStructure.class; }
 
         @Override
-        public JsonValue serialize( Object object, Function<Object, JsonValue> serializeFunction
)
+        public JsonValue serialize( Object object, Function<Object, JsonValue> serialize
)
         {
             CustomStructure customStructure = type().cast( object );
             return Json.createObjectBuilder()
                        .add( "foo", customStructure.foo )
-                       .add( "bar", serializeFunction.apply( customStructure.bar ) )
+                       .add( "bar", serialize.apply( customStructure.bar ) )
                        .build();
         }
 
         @Override
-        public CustomStructure deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserializeFunction )
+        public CustomStructure deserialize( JsonValue json, BiFunction<JsonValue, ValueType,
Object> deserialize )
         {
             if( json.getValueType() != JsonValue.ValueType.OBJECT )
             {
@@ -127,7 +127,7 @@ public class CustomJsonAdapterTest extends AbstractPolygeneTest
             }
             JsonObject jsonObject = (JsonObject) json;
             String foo = jsonObject.getString( "foo" );
-            LocalDate bar = (LocalDate) deserializeFunction.apply( jsonObject.get( "bar"
), ValueType.of( LocalDate.class ) );
+            LocalDate bar = (LocalDate) deserialize.apply( jsonObject.get( "bar" ), ValueType.of(
LocalDate.class ) );
             return new CustomStructure( foo, bar );
         }
     }

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlAdapter.java
----------------------------------------------------------------------
diff --git a/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlAdapter.java
b/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlAdapter.java
index 3761198..b255daa 100644
--- a/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlAdapter.java
+++ b/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlAdapter.java
@@ -40,17 +40,17 @@ public interface JavaxXmlAdapter<T>
      *
      * @param document the Document to use as a Node factory
      * @param object Object to serialize, never null
-     * @param serializationFunction Serialization function for nested structure serialization
+     * @param serialize Serialization function for nested structure serialization
      * @return Serialized XML representation
      */
-    Node serialize( Document document, Object object, Function<Object, Node> serializationFunction
);
+    Node serialize( Document document, Object object, Function<Object, Node> serialize
);
 
     /**
      * Deserialize.
      *
      * @param node XML to deserialize from, never null
-     * @param deserializationFunction Deserialization function for nested structure deserialization
+     * @param deserialize Deserialization function for nested structure deserialization
      * @return Deserialized object
      */
-    T deserialize( Node node, BiFunction<Node, ValueType, Object> deserializationFunction
);
+    T deserialize( Node node, BiFunction<Node, ValueType, Object> deserialize );
 }

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlSerializationService.java
----------------------------------------------------------------------
diff --git a/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlSerializationService.java
b/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlSerializationService.java
index a50f0f2..4ff2e1c 100644
--- a/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlSerializationService.java
+++ b/extensions/serialization-javaxxml/src/main/java/org/apache/polygene/serialization/javaxxml/JavaxXmlSerializationService.java
@@ -96,7 +96,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
         private static abstract class ToStringTextNodeAdapter<T> implements JavaxXmlAdapter<T>
         {
             @Override
-            public Node serialize( Document document, Object object, Function<Object,
Node> serializationFunction )
+            public Node serialize( Document document, Object object, Function<Object,
Node> serialize )
             {
                 return document.createTextNode( object.toString() );
             }
@@ -108,7 +108,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<String> type() { return String.class; }
 
             @Override
-            public String deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public String deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return node.getNodeValue();
             }
@@ -120,7 +120,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Character> type() { return Character.class; }
 
             @Override
-            public Character deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Character deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 String string = node.getNodeValue();
                 return string.isEmpty() ? null : string.charAt( 0 );
@@ -133,7 +133,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Boolean> type() { return Boolean.class; }
 
             @Override
-            public Boolean deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Boolean deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Boolean.valueOf( node.getNodeValue() );
             }
@@ -145,7 +145,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Integer> type() { return Integer.class; }
 
             @Override
-            public Integer deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Integer deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Integer.valueOf( node.getNodeValue() );
             }
@@ -157,7 +157,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Long> type() { return Long.class; }
 
             @Override
-            public Long deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Long deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Long.valueOf( node.getNodeValue() );
             }
@@ -169,7 +169,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Short> type() { return Short.class; }
 
             @Override
-            public Short deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Short deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Short.valueOf( node.getNodeValue() );
             }
@@ -181,7 +181,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Byte> type() { return Byte.class; }
 
             @Override
-            public Byte deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Byte deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Byte.valueOf( node.getNodeValue() );
             }
@@ -193,7 +193,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Float> type() { return Float.class; }
 
             @Override
-            public Float deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Float deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Float.valueOf( node.getNodeValue() );
             }
@@ -205,7 +205,7 @@ public interface JavaxXmlSerializationService extends JavaxXmlSerialization,
Ser
             public Class<Double> type() { return Double.class; }
 
             @Override
-            public Double deserialize( Node node, BiFunction<Node, ValueType, Object>
deserializationFunction )
+            public Double deserialize( Node node, BiFunction<Node, ValueType, Object>
deserialize )
             {
                 return Double.valueOf( node.getNodeValue() );
             }

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackAdapter.java
----------------------------------------------------------------------
diff --git a/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackAdapter.java
b/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackAdapter.java
index 6d99e69..5ca8a60 100644
--- a/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackAdapter.java
+++ b/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackAdapter.java
@@ -39,19 +39,19 @@ public interface MessagePackAdapter<T>
      * Serialize.
      *
      * @param object Object to serialize, never null
-     * @param serializeFunction Serialization function for nested structure serialization
+     * @param serialize Serialization function for nested structure serialization
      * @return MessagePack Value
      */
-    Value serialize( Object object, Function<Object, Value> serializeFunction )
+    Value serialize( Object object, Function<Object, Value> serialize )
         throws IOException;
 
     /**
      * Deserialize.
      *
      * @param value MessagePack value
-     * @param deserializeFunction Deserialization function for nested structure deserialization
+     * @param deserialize Deserialization function for nested structure deserialization
      * @return Deserialized object
      */
-    T deserialize( Value value, BiFunction<Value, ValueType, Object> deserializeFunction
)
+    T deserialize( Value value, BiFunction<Value, ValueType, Object> deserialize )
         throws IOException;
 }

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7f700622/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackSerializationService.java
----------------------------------------------------------------------
diff --git a/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackSerializationService.java
b/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackSerializationService.java
index 9bc2d74..43afb3e 100644
--- a/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackSerializationService.java
+++ b/extensions/serialization-msgpack/src/main/java/org/apache/polygene/serialization/msgpack/MessagePackSerializationService.java
@@ -96,7 +96,7 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
         private static abstract class ToStringAdapter<T> implements MessagePackAdapter<T>
         {
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newString( object.toString() );
             }
@@ -108,7 +108,7 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<String> type() { return String.class; }
 
             @Override
-            public String deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public String deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asStringValue().asString();
             }
@@ -120,7 +120,7 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Character> type() { return Character.class; }
 
             @Override
-            public Character deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Character deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 String string = value.asStringValue().asString();
                 return string.isEmpty() ? null : string.charAt( 0 );
@@ -133,13 +133,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Boolean> type() { return Boolean.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newBoolean( (Boolean) object );
             }
 
             @Override
-            public Boolean deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Boolean deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asBooleanValue().getBoolean();
             }
@@ -151,13 +151,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Integer> type() { return Integer.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newInteger( (Integer) object );
             }
 
             @Override
-            public Integer deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Integer deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asIntegerValue().asInt();
             }
@@ -169,13 +169,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Long> type() { return Long.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newInteger( (Long) object );
             }
 
             @Override
-            public Long deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Long deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asIntegerValue().asLong();
             }
@@ -187,13 +187,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Short> type() { return Short.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newInteger( (Short) object );
             }
 
             @Override
-            public Short deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Short deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asIntegerValue().asShort();
             }
@@ -205,13 +205,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Byte> type() { return Byte.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newInteger( (Byte) object );
             }
 
             @Override
-            public Byte deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Byte deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asIntegerValue().asByte();
             }
@@ -223,13 +223,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Float> type() { return Float.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newFloat( (Float) object );
             }
 
             @Override
-            public Float deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Float deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asFloatValue().toFloat();
             }
@@ -241,13 +241,13 @@ public interface MessagePackSerializationService extends MessagePackSerializatio
             public Class<Double> type() { return Double.class; }
 
             @Override
-            public Value serialize( Object object, Function<Object, Value> serializeFunction
)
+            public Value serialize( Object object, Function<Object, Value> serialize
)
             {
                 return ValueFactory.newFloat( (Double) object );
             }
 
             @Override
-            public Double deserialize( Value value, BiFunction<Value, ValueType, Object>
deserializeFunction )
+            public Double deserialize( Value value, BiFunction<Value, ValueType, Object>
deserialize )
             {
                 return value.asFloatValue().toDouble();
             }


Mime
View raw message