Reference Guide

Table Of Contents
@Component (ordinal = 1)
private String id;
private SeverityComposite(Severity severity, String id) {
this.severity = (severity == null) ? null :severity.name();
this.id = id;
}
public Severity getSeverity() {
return Enum.valueOf(Severity.class, this.severity);
}
public String getId() {
return this.id;
}
@Override
public int hashCode() {
...
}
@Override
public boolean equals(Object obj) {
...
}
@Override
public int compareTo(SeverityComposite other) {
int comparison = 0;
if (other.id != null) {
comparison = id.compareTo(other.id);
}
if (comparison == 0) {
comparison = this.severity.compareTo(other.severity);
}
return comparison;
}
}
private static class AlertsBySeverity
implements CfQueryOperations<String, CassandraAlert> {
private static final AnnotatedCompositeSerializer<SeverityComposite>
serializer = new AnnotatedCompositeSerializer<SeverityComposite>
(SeverityComposite.class);
98