public TerminalSize max ( TerminalSize other ) { return withColumns ( Math . max ( columns , other . columns ) ) . withRows ( Math . max ( rows , other . rows ) ) ; }
Takes a different TerminalSize and returns a new TerminalSize that has the largest dimensions of the two measured separately . So calling 3x5 on a 5x3 will return 5x5 .