@Test public void isIntBased() { assertThat(Schema.INTEGER.isIntBased(), equalTo(true)); assertThat(Schema.list(Schema.INTEGER).isIntBased(), equalTo(true)); assertThat(Schema.set(Schema.INTEGER).isIntBased(), equalTo(true)); assertThat(Schema.set(Schema.list(Schema.INTEGER)).isIntBased(), equalTo(true)); assertThat(Schema.list(Schema.STRING).isIntBased(), equalTo(false)); }
public boolean isIntBased() { return _baseType.equals(Integer.class); }
Schema { public boolean isIntBased() { return _baseType.equals(Integer.class); } }
Schema { public boolean isIntBased() { return _baseType.equals(Integer.class); } @JsonCreator  Schema(String schema); }
Schema { public boolean isIntBased() { return _baseType.equals(Integer.class); } @JsonCreator  Schema(String schema); static final Schema list(Schema baseSchema); static final Schema set(Schema baseSchema); @Override boolean equals(Object o); Class<?> getBaseType(); @Nullable Schema getInnerSchema(); Type getType(); @Override int hashCode(); boolean isCollection(); boolean isIntBased(); @Override @JsonValue String toString(); }
Schema { public boolean isIntBased() { return _baseType.equals(Integer.class); } @JsonCreator  Schema(String schema); static final Schema list(Schema baseSchema); static final Schema set(Schema baseSchema); @Override boolean equals(Object o); Class<?> getBaseType(); @Nullable Schema getInnerSchema(); Type getType(); @Override int hashCode(); boolean isCollection(); boolean isIntBased(); @Override @JsonValue String toString(); static final Schema BGP_ROUTE; static final Schema BGP_ROUTE_DIFFS; static final Schema BOOLEAN; static final Schema DOUBLE; static final Schema FILE_LINES; static final Schema FLOW; static final Schema INTEGER; static final Schema INTERFACE; static final Schema IP; static final Schema ISSUE; static final Schema LONG; static final Schema OBJECT; static final Schema NODE; static final Schema PREFIX; static final Schema SELF_DESCRIBING; static final Schema STRING; static final Schema TRACE; static final Schema TRACE_TREE; }