Package com.mastfrog.abstractions
package com.mastfrog.abstractions
Abstractions
A few abstractions on this earth are so common in Java that they deserve a common interface:
Copyable— a thing that can be copied (without the silly casting of Cloneable)Named— a thing that has a nameResettable— a thing that has state which can be resetStrigifier— a thing which converts an object to a stringStrigifier— a thing that can take a type and return an instance of that type
-
ClassDescriptionBase class for things that are implement Named and want to use that for their toString() implementation.Copyable<T>Interface for things that have namesIterable.Stringifier<T>Abstraction for a thing that converts an object to a string.Wrapper<W>Abstraction for an object which is a wrapper for another object, which may be of the same or a different type, and may exist in a hierarchy of such objects, with methods for resolving such wrapped objects in a type-safe way.