
com.esotericsoftware.kryo.NotNull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kryo Show documentation
Show all versions of kryo Show documentation
Kryo is a fast and efficient object graph serialization framework for Java. The goals of the project are speed, efficiency, and an easy to use API. The project is useful any time objects need to be persisted, whether to a file, database, or over the network.
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.serialize.FieldSerializer;
/**
* Indicates a field can never be null when it is being serialized and deserialized. This optimization allows
* {@link FieldSerializer} to save 1 byte.
* @author Nathan Sweet
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface NotNull {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy