Type.Continue, Type.FieldNotFoundException, Type.Mu, Type.TypeError, Type.TypeMatcher<FT,FR>
Modifier and Type | Field and Description |
---|---|
protected Type<V> |
element |
protected Type<K> |
key |
Constructor and Description |
---|
CompoundListType(Type<K> key,
Type<V> element) |
Modifier and Type | Method and Description |
---|---|
RewriteResult<List<(K,V)>,?> |
all(TypeRewriteRule rule,
boolean recurse,
boolean checkIndex)
gmapT
run rule on all direct children and combine results
|
protected Codec<List<(K,V)>> |
buildCodec() |
TypeTemplate |
buildTemplate() |
boolean |
equals(Object obj,
boolean ignoreRecursionPoints,
boolean checkIndex) |
<FT,FR> (TypedOptic<List<(K,V)>,?,FT,FR>|Type.FieldNotFoundException) |
findTypeInChildren(Type<FT> type,
Type<FR> resultType,
Type.TypeMatcher<FT,FR> matcher,
boolean recurse) |
Type<V> |
getElement() |
Type<K> |
getKey() |
int |
hashCode() |
<K2,V2> RewriteResult<List<(K,V)>,?> |
mergeViews(RewriteResult<K,K2> leftView,
RewriteResult<V,V2> rightView) |
Optional<RewriteResult<List<(K,V)>,?>> |
one(TypeRewriteRule rule)
run rule on exactly one child
|
Optional<List<(K,V)>> |
point(DynamicOps<?> ops)
populate with the default value, if possible
only initializes empty things
|
String |
toString() |
Type<?> |
updateMu(RecursiveTypeFamily newFamily) |
codec, equals, everywhere, findCheckedType, findChoiceType, finder, findField, findFieldType, findFieldTypeOpt, findType, findTypeCached, getSetType, ifSame, ifSame, ifSame, opticView, pointTyped, read, read, readAndWrite, readTyped, readTyped, rewrite, rewriteOrNop, template, unbox, write, writeDynamic
public RewriteResult<List<(K,V)>,?> all(TypeRewriteRule rule, boolean recurse, boolean checkIndex)
Type
public <K2,V2> RewriteResult<List<(K,V)>,?> mergeViews(RewriteResult<K,K2> leftView, RewriteResult<V,V2> rightView)
public Optional<RewriteResult<List<(K,V)>,?>> one(TypeRewriteRule rule)
Type
public Type<?> updateMu(RecursiveTypeFamily newFamily)
public TypeTemplate buildTemplate()
public Optional<List<(K,V)>> point(DynamicOps<?> ops)
Type
public <FT,FR> (TypedOptic<List<(K,V)>,?,FT,FR>|Type.FieldNotFoundException) findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT,FR> matcher, boolean recurse)
public boolean equals(Object obj, boolean ignoreRecursionPoints, boolean checkIndex)