
org.bukkit.util.io.Wrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package org.bukkit.util.io;
import com.google.common.collect.ImmutableMap;
import org.bukkit.configuration.serialization.ConfigurationSerializable;
import org.bukkit.configuration.serialization.ConfigurationSerialization;
import java.io.Serializable;
import java.util.Map;
class Wrapper & Serializable> implements Serializable {
private static final long serialVersionUID = -986209235411767547L;
final T map;
private Wrapper(T map) {
this.map = map;
}
static Wrapper> newWrapper(ConfigurationSerializable obj) {
return new Wrapper>(ImmutableMap.builder().put(ConfigurationSerialization.SERIALIZED_TYPE_KEY, ConfigurationSerialization.getAlias(obj.getClass())).putAll(obj.serialize()).build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy