private static Indentation resolve ( final int width , final char ch , final int level ) { return width == 0 ? NONE : ch == ' ' ? spaces ( width , level ) : width == 1 && ch == ' ' ? tabs ( level ) : new Indentation ( width , ch , level ) ; }
Internal factory method that tries to resolve a constant indentation instance before returning a new object .