public abstract class PubSubConfFieldSpecification<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Function<PubSubConf.Builder<?>,T> |
builderGetter |
protected BiConsumer<PubSubConf.Builder<?>,T> |
builderSetter |
protected Function<PubSubConf,T> |
getter |
protected Class<? extends PubSubConf.Builder<?>> |
parentBuilderClass |
protected Class<? extends PubSubConf> |
parentClass |
protected Function |
rawBuilderGetter |
protected BiConsumer |
rawBuilderSetter |
protected Function |
rawGetter |
| Modifier and Type | Method and Description |
|---|---|
PubSubConfFieldSpecification<Object> |
asRaw()
Returns itself casted to PubSubConfFieldSpecification with Object type.
|
boolean |
equals(Object obj)
Returns true if the given object is equal to this.
|
Class<T> |
getJavaClass()
Direct java class of the field.
|
String |
getName()
Returns the name of the field.
|
int |
hashCode() |
String |
toString() |
protected final Function<PubSubConf,T> getter
protected final Function rawGetter
protected final Function<PubSubConf.Builder<?>,T> builderGetter
protected final Function rawBuilderGetter
protected final BiConsumer<PubSubConf.Builder<?>,T> builderSetter
protected final BiConsumer rawBuilderSetter
protected final Class<? extends PubSubConf> parentClass
protected final Class<? extends PubSubConf.Builder<?>> parentBuilderClass
public PubSubConfFieldSpecification<Object> asRaw()
PubSubConfFieldSpecification is primarily designed to only be passed to
PubSubConf.Builder.set(PubSubConfFieldSpecification, Object) in cases where the
generics of this is not known. Passing this directly would cause "capture#X-of ? errors. While
they can be solved via casts and raw types, this method was made to avoid the need.
Thus, you can call PubSubConf.set(fieldSpecification.asRaw(), data), note that the data must
still be of correct type (i.e. getJavaClass() Class.cast(Object) must work) or
exceptions will be thrown.
public final boolean equals(Object obj)
PubSubConfFieldSpecification it is equal if the name and class match.public String getName()
Copyright © 2026. All rights reserved.