Record Class AnnotationsData
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.extras.annotations.AnnotationsData
public record AnnotationsData(Map<String,ClassAnnotationData> classes, String namespace)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationsData(String namespace) AnnotationsData(Map<String, ClassAnnotationData> classes, String namespace) Creates an instance of aAnnotationsDatarecord class.AnnotationsData(AnnotationsData other) -
Method Summary
Modifier and TypeMethodDescriptionclasses()Returns the value of theclassesrecord component.final booleanIndicates whether some other object is "equal to" this one.static @Nullable AnnotationsDatagetRemappedAnnotations(MappingsNamespace targetNamespace, MappingConfiguration mappingConfiguration, org.gradle.api.Project project, ServiceFactory serviceFactory, String newNamespace) final inthashCode()Returns a hash code value for this object.static com.google.gson.JsonObjectlistToJson(List<AnnotationsData> annotationsData) merge(AnnotationsData other) Returns the value of thenamespacerecord component.static AnnotationsDatastatic List<AnnotationsData> com.google.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON
-
-
Constructor Details
-
AnnotationsData
Creates an instance of aAnnotationsDatarecord class.- Parameters:
classes- the value for theclassesrecord componentnamespace- the value for thenamespacerecord component
-
AnnotationsData
-
AnnotationsData
-
-
Method Details
-
read
-
readList
-
toJson
public com.google.gson.JsonObject toJson() -
listToJson
-
merge
-
remap
-
getRemappedAnnotations
public static @Nullable AnnotationsData getRemappedAnnotations(MappingsNamespace targetNamespace, MappingConfiguration mappingConfiguration, org.gradle.api.Project project, ServiceFactory serviceFactory, String newNamespace) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
classes
Returns the value of theclassesrecord component.- Returns:
- the value of the
classesrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-