Since and Until, modifiers, synthetic fields, anonymous and local
classes, inner classes, and fields with the Expose annotation.
This class is a type adapter factory; types that are excluded will be adapted to null. It may delegate to another type adapter if only one direction is excluded.
| Modifier and Type | Field and Description |
|---|---|
| public static final Excluder | |
| private List | |
| private static final double | |
| private int | |
| private boolean | |
| private List | |
| private boolean | |
| private double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Excluder | |
| public <T> TypeAdapter | create(Gson gson, TypeToken<T> type)
Implements com. Returns a type adapter for |
| public Excluder | |
| public boolean | |
| public boolean | |
| public Excluder | |
| private static boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public Excluder | withExclusionStrategy(ExclusionStrategy exclusionStrategy, boolean serialization, boolean deserialization)
|
| public Excluder | |
| public Excluder |
| DEFAULT | back to summary |
|---|---|
| public static final Excluder DEFAULT | |
| deserializationStrategies | back to summary |
|---|---|
| private List<ExclusionStrategy> deserializationStrategies | |
| IGNORE_VERSIONS | back to summary |
|---|---|
| private static final double IGNORE_VERSIONS | |
| modifiers | back to summary |
|---|---|
| private int modifiers | |
| requireExpose | back to summary |
|---|---|
| private boolean requireExpose | |
| serializationStrategies | back to summary |
|---|---|
| private List<ExclusionStrategy> serializationStrategies | |
| serializeInnerClasses | back to summary |
|---|---|
| private boolean serializeInnerClasses | |
| version | back to summary |
|---|---|
| private double version | |
| Excluder | back to summary |
|---|---|
| public Excluder() | |
| clone | back to summary |
|---|---|
| protected Excluder clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| create | back to summary |
|---|---|
| public <T> TypeAdapter Implements com. Doc from com. Returns a type adapter for
| |
| disableInnerClassSerialization | back to summary |
|---|---|
| public Excluder disableInnerClassSerialization() | |
| excludeClass | back to summary |
|---|---|
| public boolean excludeClass(Class<?> clazz, boolean serialize) | |
| excludeField | back to summary |
|---|---|
| public boolean excludeField(Field field, boolean serialize) | |
| excludeFieldsWithoutExposeAnnotation | back to summary |
|---|---|
| public Excluder excludeFieldsWithoutExposeAnnotation() | |
| isInnerClass | back to summary |
|---|---|
| private static boolean isInnerClass(Class<?> clazz) | |
| isValidSince | back to summary |
|---|---|
| private boolean isValidSince(Since annotation) | |
| isValidUntil | back to summary |
|---|---|
| private boolean isValidUntil(Until annotation) | |
| isValidVersion | back to summary |
|---|---|
| private boolean isValidVersion(Since since, Until until) | |
| withExclusionStrategy | back to summary |
|---|---|
| public Excluder withExclusionStrategy(ExclusionStrategy exclusionStrategy, boolean serialization, boolean deserialization) | |
| withModifiers | back to summary |
|---|---|
| public Excluder withModifiers(int... modifiers) | |
| withVersion | back to summary |
|---|---|
| public Excluder withVersion(double ignoreVersionsAfter) | |