Record Class SourceInfo
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.style.SourceInfo
public record SourceInfo(SourceType type, int nativeType, boolean volatileSource, Optional<String> attribution)
extends Record
Copied fixed metadata for one style source.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceInfo(SourceType type, int nativeType, boolean volatileSource, Optional<String> attribution) Creates an instance of aSourceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenativeTyperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.booleanReturns the value of thevolatileSourcerecord component.
-
Constructor Details
-
SourceInfo
public SourceInfo(SourceType type, int nativeType, boolean volatileSource, Optional<String> attribution) Creates an instance of aSourceInforecord class.- Parameters:
type- the value for thetyperecord componentnativeType- the value for thenativeTyperecord componentvolatileSource- the value for thevolatileSourcerecord componentattribution- the value for theattributionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
nativeType
public int nativeType()Returns the value of thenativeTyperecord component.- Returns:
- the value of the
nativeTyperecord component
-
volatileSource
public boolean volatileSource()Returns the value of thevolatileSourcerecord component.- Returns:
- the value of the
volatileSourcerecord component
-
attribution
-