/*
 * Copyright 2018 MovingBlocks
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.terasology.persistence.typeHandling.gson;

import org.terasology.persistence.typeHandling.TypeHandler;

public class TypeHandlerEntry<T> {
    public Class<T> type;
    public TypeHandler<T> typeHandler;

    public static <U> TypeHandlerEntry<U> of(Class<U> type, TypeHandler<U> typeHandler) {
        return new TypeHandlerEntry<>();
    }
}

@@ -752,16 +752,22 @@
  public 
+final 
 Class%3CT%3E
@@ -784,16 +784,22 @@
  public 
+final 
 TypeHand
@@ -819,16 +819,163 @@
 ndler;%0A%0A
+    private TypeHandlerEntry(Class%3CT%3E type, TypeHandler%3CT%3E typeHandler) %7B%0A        this.type = type;%0A        this.typeHandler = typeHandler;%0A    %7D%0A%0A
     publ
@@ -1048,32 +1048,32 @@
  typeHandler) %7B%0A
-
         return n
@@ -1094,16 +1094,33 @@
 Entry%3C%3E(
+type, typeHandler
 );%0A    %7D

Complete TypeHandlerEntry definition, make fields final