com.esotericsoftware.kryo
Annotation Type Optional


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Optional

Indicates a field should be ignored when its declaring class is registered unless the context has a value set for specified key. This can be useful to useful when a field must be serialized for one purpose, but not for another. Eg, a class for a networked application might have a field that should not be serialized and sent to clients, but should be serialized when stored on the server.

Author:
Nathan Sweet

Required Element Summary
 java.lang.String value
           
 

Element Detail

value

public abstract java.lang.String value


Copyright © 2011. All Rights Reserved.