Package net.morimekta.providence.model
Class TypedefType
- java.lang.Object
-
- net.morimekta.providence.model.TypedefType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypedefType>,Decl,TypedefType_OrBuilder,net.morimekta.providence.PMessage<TypedefType>,net.morimekta.providence.PMessageOrBuilder<TypedefType>,net.morimekta.providence.PValue<TypedefType>,net.morimekta.providence.serializer.binary.BinaryWriter,net.morimekta.util.Stringable
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class TypedefType extends java.lang.Object implements Decl, TypedefType_OrBuilder, net.morimekta.providence.PMessage<TypedefType>, java.lang.Comparable<TypedefType>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWritertypedef <type> <name>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypedefType._Buildertypedef <type> <name>static classTypedefType._Field
-
Field Summary
Fields Modifier and Type Field Description static net.morimekta.providence.descriptor.PStructDescriptor<TypedefType>kDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasString()static TypedefType._Builderbuilder()Make ap_model.TypedefTypebuilder.intcompareTo(TypedefType other)net.morimekta.providence.descriptor.PStructDescriptor<TypedefType>descriptor()booleanequals(java.lang.Object o)<T> Tget(int key)java.lang.StringgetDocumentation()Documentation for the specific declaration.java.lang.StringgetName()Name of the type, constant or service.java.lang.StringgetType()booleanhas(int key)booleanhasDocumentation()inthashCode()booleanhasName()booleanhasType()TypedefType._Buildermutate()java.util.Optional<java.lang.String>optionalDocumentation()Documentation for the specific declaration.static net.morimekta.providence.descriptor.PStructDescriptorProvider<TypedefType>provider()java.lang.StringtoString()intwriteBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
-
-
-
Field Detail
-
kDescriptor
public static final net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> kDescriptor
-
-
Method Detail
-
hasDocumentation
public boolean hasDocumentation()
- Specified by:
hasDocumentationin interfaceDecl- Returns:
- If documentation is present.
-
getDocumentation
public java.lang.String getDocumentation()
Description copied from interface:DeclDocumentation for the specific declaration.- Specified by:
getDocumentationin interfaceDecl- Returns:
- The
documentationvalue
-
optionalDocumentation
@Nonnull public java.util.Optional<java.lang.String> optionalDocumentation()
Description copied from interface:DeclDocumentation for the specific declaration.- Specified by:
optionalDocumentationin interfaceDecl- Returns:
- Optional of the
documentationfield value.
-
hasType
public boolean hasType()
- Specified by:
hasTypein interfaceTypedefType_OrBuilder- Returns:
- If type is present.
-
getType
@Nonnull public java.lang.String getType()
- Specified by:
getTypein interfaceTypedefType_OrBuilder- Returns:
- The
typevalue
-
hasName
public boolean hasName()
-
getName
@Nonnull public java.lang.String getName()
Description copied from interface:DeclName of the type, constant or service.
-
has
public boolean has(int key)
- Specified by:
hasin interfacenet.morimekta.providence.PMessageOrBuilder<TypedefType>
-
get
public <T> T get(int key)
- Specified by:
getin interfacenet.morimekta.providence.PMessageOrBuilder<TypedefType>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
asString
@Nonnull public java.lang.String asString()
- Specified by:
asStringin interfacenet.morimekta.providence.PMessage<TypedefType>- Specified by:
asStringin interfacenet.morimekta.util.Stringable
-
compareTo
public int compareTo(TypedefType other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypedefType>
-
writeBinary
public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) throws java.io.IOException- Specified by:
writeBinaryin interfacenet.morimekta.providence.serializer.binary.BinaryWriter- Throws:
java.io.IOException
-
mutate
@Nonnull public TypedefType._Builder mutate()
- Specified by:
mutatein interfacenet.morimekta.providence.PMessage<TypedefType>
-
provider
@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<TypedefType> provider()
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> descriptor()
- Specified by:
descriptorin interfacenet.morimekta.providence.PMessageOrBuilder<TypedefType>- Specified by:
descriptorin interfacenet.morimekta.providence.PValue<TypedefType>
-
builder
public static TypedefType._Builder builder()
Make ap_model.TypedefTypebuilder.- Returns:
- The builder instance.
-
-