All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.esotericsoftware.kryo.NotNull Maven / Gradle / Ivy


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} will save 1 byte.
 * @author Nathan Sweet  */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface NotNull {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy