Skip to content

Package io.github.qishr.cascara.common.lang.type

Class InstantTypeDescriptor

java.lang.Object
        io.github.qishr.cascara.common.lang.type.AbstractTypeDescriptor<java.time.Instant>
                io.github.qishr.cascara.common.lang.type.AbstractScalarDescriptor<java.time.Instant>
                        io.github.qishr.cascara.common.lang.type.InstantTypeDescriptor


public class InstantTypeDescriptor
extends AbstractScalarDescriptor<Instant>

Constructor Summary

Constructor Description
InstantTypeDescriptor()

Method Summary

Modifier and Type Method Description
public Instant toJvmType(String text)
public Object toPrimitive(Instant jvmInstance)
public boolean validate(String text, Reporter collector)

Methods inherited from AbstractTypeDescriptor

getSchemaType, getServiceProperties, getJvmType

Methods inherited from AbstractScalarDescriptor

getFormat, populateSchema, getContentEncoding, formatError

Method Details

toJvmType

public Instant toJvmType(String text)


toPrimitive

public Object toPrimitive(Instant jvmInstance)


validate

public boolean validate(String text, Reporter collector)