All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.peckb1.examples.auto.Sample Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.github.peckb1.examples.auto;

import com.github.peckb1.processor.AutoJackson;
import com.github.peckb1.processor.Named;

import java.time.Instant;
import java.util.Date;
import java.util.List;
import java.util.Optional;

@AutoJackson
public interface Sample {

    // some primitives
    String getString();
    @Named("intPrimitive") int getInt();
    @Named("booleanPrimitive") boolean getBoolean();

    // an enumeration
    Muppet getMuppet();

    // some base classes
    Fraggle getFraggle();
    Gorg getGorg();

    // lists & arrays
    List getMuppetList();
    Muppet[] getMuppetArray();
    List getFraggleList();
    Fraggle[] getFraggleArray();
    List getGorgList();
    Gorg[] getGorgArray();

    // timestamps
    @Named("start") Instant getStartTime();
    @Named("end") Date getEndTime();

    // Optionals
    Optional getOptionalString();
    Optional getOptionalFraggle();
    Optional> getOptionalFraggleList();
    Optional getOptionalGorg();
    Optional getOptionalGorgArray();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy