com.github.peckb1.examples.auto.Sample Maven / Gradle / Ivy
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();
}