Interface Erasable<T>

Type Parameters:
T - the type that implements this interface
All Known Implementing Classes:
Method, Property

public interface Erasable<T>
Interface for types that can provide their erasure representation. Type erasure removes generic type information and provides a canonical representation that can be used for comparison and resolution.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the erasure of this type as a canonical string representation.
    Returns an erased version of this object with generic type information removed.
  • Method Details

    • getErasure

      String getErasure()
      Returns the erasure of this type as a canonical string representation. The erasure removes generic type parameters and provides a stable way to compare types regardless of generic instantiation.
      Returns:
      the type erasure string
    • withErasure

      T withErasure()
      Returns an erased version of this object with generic type information removed. This creates a canonical instance that can be used for comparison and resolution.
      Returns:
      the erased version of this object