public class AvroReplacementDescriptor extends Object implements Descriptor, Comparable<AvroReplacementDescriptor>
Modifier and Type | Field and Description |
---|---|
protected String |
forbidden |
protected int |
priority |
protected String |
replacement |
UNIQUE_DESCRIPTOR_ID
Constructor and Description |
---|
AvroReplacementDescriptor() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AvroReplacementDescriptor o) |
boolean |
equals(Object obj) |
String |
getId()
The descriptor id, descriptors with same id are merged.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
doesRemove, merge
protected String replacement
protected int priority
public AvroReplacementDescriptor()
public int compareTo(AvroReplacementDescriptor o)
compareTo
in interface Comparable<AvroReplacementDescriptor>
public String getId()
Descriptor
To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden toString()
for exemple.
getId
in interface Descriptor
Copyright © 2019 Nuxeo. All rights reserved.