Record Class UserMappedImport
java.lang.Object
java.lang.Record
dk.mada.jaxrs.generator.mpclient.imports.UserMappedImport
- Record Components:
path- the import path
- All Implemented Interfaces:
TypedImport
A user-mapped import - replacing a given type with a imported class.
-
Constructor Summary
ConstructorsConstructorDescriptionUserMappedImport(String path) Creates an instance of aUserMappedImportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.path(dk.mada.jaxrs.generator.mpclient.imports.Imports.ImportRenderPrefs irp) Returns the import path suitable for the import type, or null if not applicable.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserMappedImport
-
-
Method Details
-
path
public Optional<String> path(dk.mada.jaxrs.generator.mpclient.imports.Imports.ImportRenderPrefs irp) Description copied from interface:TypedImportReturns the import path suitable for the import type, or null if not applicable.- Specified by:
pathin interfaceTypedImport- Parameters:
irp- the import rendering preferences- Returns:
- the import path suitable for the import type, or null if not applicable
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
path
-