public interface Simple<T> extends Supplier<T>, Comparable<Simple<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Simple.Avro |
static class |
Simple.AvroBuilder |
static interface |
Simple.Builder<T> |
static class |
Simple.Comparator |
static class |
Simple.NativeImpl |
static class |
Simple.Protobuf |
static class |
Simple.ProtobufBuilder |
static class |
Simple.Thrift |
static class |
Simple.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Simple.Avro |
avro(Simple<?> instance)
Returns a wrapped Avro record based on an instance of Simple.
|
static Simple.Avro |
avro(SimpleAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Simple<?> other) |
T |
get()
Returns underlying object.
|
static Class<SimpleAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
Supplier<byte[]> |
getBar()
field #2
|
double |
getBaz()
field #3
|
default double |
getBlab()
Deprecated.
|
static Comparator<Simple<?>> |
getComparator()
Returns comparator instance for Simple objects.
|
long |
getFoo()
field #1
|
static Class<SimpleProtobuf.Simple> |
getProtobufClass()
Returns Protobuf class for this struct.
|
static com.google.protobuf.Descriptors.Descriptor |
getProtobufDescriptor()
Returns Protobuf descriptor for this struct.
|
static Class<SimpleProtobuf> |
getProtobufProtocolClass()
Returns Protobuf protocol class for this struct.
|
static com.google.protobuf.Descriptors.FileDescriptor |
getProtobufProtocolDescriptor()
Returns Protobuf protocol descriptor for this struct.
|
static Class<SimpleThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<SimpleThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultBar() |
boolean |
isDefaultBaz() |
default boolean |
isDefaultBlab()
Deprecated.
|
boolean |
isDefaultFoo() |
static Simple.NativeImpl |
nativeImpl(Simple<?> instance)
Returns a POJO based on an instance of Simple.
|
static Simple.Builder<SimpleAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Simple.Builder<SimpleAvro> |
newAvroBuilder(Simple<?> other)
Returns new Avro builder instance based on existing prototype Simple.
|
static Simple.Builder<SimpleAvro> |
newAvroBuilder(SimpleAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Simple.Builder<SimpleAvro> |
newAvroBuilder(SimpleAvro other)
Returns new Avro builder instance based on existing prototype.
|
Simple.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Simple.Builder<Simple.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Simple.Builder<Simple.NativeImpl> |
newNativeImplBuilder(Simple<?> other)
Returns a POJO builder instance based on existing prototype Simple.
|
static Simple.Builder<SimpleProtobuf.Simple> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Simple.Builder<SimpleProtobuf.Simple> |
newProtobufBuilder(Simple<?> other)
Returns new Protobuf builder instance based on existing prototype Simple.
|
static Simple.Builder<SimpleProtobuf.Simple> |
newProtobufBuilder(SimpleProtobuf.Simple other)
Returns new Protobuf builder instance based on existing prototype.
|
static Simple.Builder<SimpleThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Simple.Builder<SimpleThrift> |
newThriftBuilder(Simple<?> other)
Returns new Thrift builder instance based on existing prototype Simple.
|
static Simple.Builder<SimpleThrift> |
newThriftBuilder(SimpleThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Simple.Protobuf |
protobuf(Simple<?> instance)
Returns a wrapped Protobuf message based on an instance of Simple.
|
static Simple.Protobuf |
protobuf(SimpleProtobuf.Simple wrapped)
Wraps an existing Protobuf message.
|
static Simple.Thrift |
thrift(Simple<?> instance)
Returns a wrapped Thrift struct based on an instance of Simple.
|
static Simple.Thrift |
thrift(SimpleThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Simple.Builder<T> newBuilder()
long getFoo()
boolean isDefaultFoo()
Supplier<byte[]> getBar()
boolean isDefaultBar()
double getBaz()
boolean isDefaultBaz()
@Deprecated default double getBlab()
@Deprecated default boolean isDefaultBlab()
static Comparator<Simple<?>> getComparator()
default int compareTo(Simple<?> other)
compareTo in interface Comparable<Simple<?>>static Simple.Builder<Simple.NativeImpl> newNativeImplBuilder()
static Simple.Builder<Simple.NativeImpl> newNativeImplBuilder(Simple<?> other)
static Simple.NativeImpl nativeImpl(Simple<?> instance)
static Simple.Builder<SimpleAvro> newAvroBuilder()
static Simple.Builder<SimpleAvro> newAvroBuilder(SimpleAvro other)
static Simple.Builder<SimpleAvro> newAvroBuilder(SimpleAvro.Builder other)
static Simple.Builder<SimpleAvro> newAvroBuilder(Simple<?> other)
static Simple.Avro avro(Simple<?> instance)
static Simple.Avro avro(SimpleAvro wrapped)
static Class<SimpleAvro> getAvroClass()
static Schema getAvroSchema()
static Simple.Builder<SimpleProtobuf.Simple> newProtobufBuilder()
static Simple.Builder<SimpleProtobuf.Simple> newProtobufBuilder(SimpleProtobuf.Simple other)
static Simple.Builder<SimpleProtobuf.Simple> newProtobufBuilder(Simple<?> other)
static Simple.Protobuf protobuf(Simple<?> instance)
static Simple.Protobuf protobuf(SimpleProtobuf.Simple wrapped)
static Class<SimpleProtobuf.Simple> getProtobufClass()
static Class<SimpleProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Simple.Builder<SimpleThrift> newThriftBuilder()
static Simple.Builder<SimpleThrift> newThriftBuilder(SimpleThrift other)
static Simple.Builder<SimpleThrift> newThriftBuilder(Simple<?> other)
static Simple.Thrift thrift(Simple<?> instance)
static Simple.Thrift thrift(SimpleThrift instance)
static Class<SimpleThrift> getThriftClass()
static Map<SimpleThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.