@ SuppressWarnings ( "SameParameterValue" ) public TextCharacter withCharacter ( char character ) { if ( this . character == character ) { return this ; } return new TextCharacter ( character , foregroundColor , backgroundColor , modifiers ) ; }
Returns a new TextCharacter with the same colors and modifiers but a different underlying character