com.esotericsoftware.kryo.NotNull Maven / Gradle / Ivy
The newest version!
package com.esotericsoftware.kryo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.esotericsoftware.kryo.serializers.FieldSerializer;
/** Indicates a field can never be null when it is being serialized and deserialized. Some serializers use this to save space. Eg,
* {@link FieldSerializer} may save 1 byte per field.
* @author Nathan Sweet */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface NotNull {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy