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 name
  • Resettable — a thing that has state which can be reset
  • Strigifier — a thing which converts an object to a string
  • Strigifier — a thing that can take a type and return an instance of that type
  • Class
    Description
    Base class for things that are implement Named and want to use that for their toString() implementation.
     
    Interface for things that have namesIterable.
     
    Abstraction for a thing that converts an object to a string.
    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.