TypeAlias allow toString to be overridden (#129)

This commit is contained in:
Paul Campbell 2020-06-20 15:08:12 +01:00 committed by GitHub
parent 30f903dbb2
commit bdb22f134e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,8 +87,13 @@ public abstract class TypeAlias<T> {
return o != null && map(o::equals); return o != null && map(o::equals);
} }
/**
* Returns a string representation of the TypeAlias.
*
* <p>This implementation delegates to the aliased value unmodified.</p>
*/
@Override @Override
public final String toString() { public String toString() {
return value.toString(); return value.toString();
} }