public class Expect
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
expect |
protected com.github.leeonky.util.BeanClass<java.lang.Object> |
type |
| Constructor and Description |
|---|
Expect(com.github.leeonky.util.BeanClass<java.lang.Object> type,
java.lang.Object expect) |
| Modifier and Type | Method and Description |
|---|---|
com.github.leeonky.dal.runtime.schema.Expect.SchemaExpect |
asSchema(Actual actual) |
int |
collectionSize() |
boolean |
equals(Actual actual,
RuntimeContextBuilder.DALRuntimeContext runtimeContext) |
Formatter<java.lang.Object,java.lang.Object> |
extractFormatter() |
Type<java.lang.Object> |
extractType() |
java.util.Optional<com.github.leeonky.util.BeanClass<?>> |
getGenericType(int typePosition) |
java.util.Optional<Schema> |
getSchema() |
java.lang.String |
inspectExpectType() |
java.lang.String |
inspectFullType() |
boolean |
isCollection() |
boolean |
isFormatter() |
boolean |
isInstanceOf(Actual actual) |
boolean |
isInstanceType(Actual actual) |
boolean |
isMap() |
boolean |
isSchema() |
boolean |
isSchemaType() |
boolean |
isSchemaValue() |
int |
mapKeysSize() |
java.util.stream.Stream<com.github.leeonky.util.PropertyReader<java.lang.Object>> |
propertyReaders() |
boolean |
structure() |
Expect |
sub(com.github.leeonky.util.BeanClass<java.lang.Object> type,
java.lang.Object key) |
Expect |
sub(int index) |
Expect |
sub(com.github.leeonky.util.PropertyReader<java.lang.Object> propertyReader) |
boolean |
verifyValue(java.util.function.BiPredicate<Value<java.lang.Object>,com.github.leeonky.util.BeanClass<?>> predicate) |
protected final com.github.leeonky.util.BeanClass<java.lang.Object> type
protected final java.lang.Object expect
public Expect(com.github.leeonky.util.BeanClass<java.lang.Object> type,
java.lang.Object expect)
public boolean isSchema()
public boolean isFormatter()
public boolean isCollection()
public boolean isMap()
public boolean isSchemaValue()
public boolean isSchemaType()
public Expect sub(com.github.leeonky.util.PropertyReader<java.lang.Object> propertyReader)
public Expect sub(com.github.leeonky.util.BeanClass<java.lang.Object> type, java.lang.Object key)
public Expect sub(int index)
public java.util.Optional<Schema> getSchema()
public Formatter<java.lang.Object,java.lang.Object> extractFormatter()
public java.util.Optional<com.github.leeonky.util.BeanClass<?>> getGenericType(int typePosition)
public java.lang.String inspectExpectType()
public java.lang.String inspectFullType()
public boolean verifyValue(java.util.function.BiPredicate<Value<java.lang.Object>,com.github.leeonky.util.BeanClass<?>> predicate)
public int mapKeysSize()
public int collectionSize()
public Type<java.lang.Object> extractType()
public boolean isInstanceOf(Actual actual)
public boolean isInstanceType(Actual actual)
public boolean equals(Actual actual, RuntimeContextBuilder.DALRuntimeContext runtimeContext)
public java.util.stream.Stream<com.github.leeonky.util.PropertyReader<java.lang.Object>> propertyReaders()
public boolean structure()
public com.github.leeonky.dal.runtime.schema.Expect.SchemaExpect asSchema(Actual actual)