Interface PrintsToStream

All Known Implementing Classes:
DogOctave, DogScaleSpace, GaussianOctave, GaussianScaleSpace, HierarchicalScaleSpace, ScaleOctave

public interface PrintsToStream

Classes which require a complex toString() method should implement this interface, which requires the single method printToStream(PrintStream), e.g.,

 public void printToStream(PrintStream strm) {
     strm.format("...", ...);
 }
 

Note that this interface cannot override the default Object.toString() method directly. If needed, this should be done in the implementing class by using the pre-defined printToString() method:

 public String toString() {
        return printToString();
 }
 
Version:
2021/09/17
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method writes a description of this object to the specified PrintStream.
    default String
    Convenience method to save some boilerplate code.