Skip to content

Commit

Permalink
Move interface to the other interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Oct 21, 2018
1 parent 34fcbb2 commit 113532f
Showing 1 changed file with 13 additions and 14 deletions.
Expand Up @@ -193,6 +193,19 @@ public interface PrettyPrintedXmlPartCallback {
void onPrettyPrintedXmlPart(StringBuilder part);
}

/**
* A functional interface which acts as sink for character sequences.
*/
public interface CharSequenceSink {

/**
* Sink a new character sequence.
*
* @param charSequence the new character sequence feed into this sink.
*/
void sink(CharSequence charSequence);
}

/**
* Create a new builder.
*
Expand Down Expand Up @@ -301,18 +314,4 @@ private static void ensureNotNegative(int i) {
}
}
}

/**
* A functional interface which acts as sink for character sequences.
*/
public interface CharSequenceSink {

/**
* Sink a new character sequence.
*
* @param charSequence the new character sequence feed into this sink.
*/
void sink(CharSequence charSequence);

}
}

0 comments on commit 113532f

Please sign in to comment.