git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit '8b2627ce767579eb616e262b3f45f810a88ec200'
[fanfix.git]
/
src
/
jexer
/
bits
/
Cell.java
diff --git
a/src/jexer/bits/Cell.java
b/src/jexer/bits/Cell.java
index ff10dae5a99732602359c929763873b74a5fed1a..ed3c202a005a8c8a2a4187d08478cf8d62a6191c 100644
(file)
--- a/
src/jexer/bits/Cell.java
+++ b/
src/jexer/bits/Cell.java
@@
-73,7
+73,7
@@
public final class Cell extends CellAttributes {
/**
* The character at this cell.
*/
/**
* The character at this cell.
*/
- private
char
ch = ' ';
+ private
int
ch = ' ';
/**
* The display width of this cell.
/**
* The display width of this cell.
@@
-129,7
+129,7
@@
public final class Cell extends CellAttributes {
* @param ch character to set to
* @see #reset()
*/
* @param ch character to set to
* @see #reset()
*/
- public Cell(final
char
ch) {
+ public Cell(final
int
ch) {
this.ch = ch;
}
this.ch = ch;
}
@@
-148,7
+148,7
@@
public final class Cell extends CellAttributes {
* @param ch character to set to
* @param attr attributes to use
*/
* @param ch character to set to
* @param attr attributes to use
*/
- public Cell(final
char
ch, final CellAttributes attr) {
+ public Cell(final
int
ch, final CellAttributes attr) {
super(attr);
this.ch = ch;
}
super(attr);
this.ch = ch;
}
@@
-263,7
+263,7
@@
public final class Cell extends CellAttributes {
*
* @return cell character
*/
*
* @return cell character
*/
- public
char
getChar() {
+ public
int
getChar() {
return ch;
}
return ch;
}
@@
-272,7
+272,7
@@
public final class Cell extends CellAttributes {
*
* @param ch new cell character
*/
*
* @param ch new cell character
*/
- public void setChar(final
char
ch) {
+ public void setChar(final
int
ch) {
this.ch = ch;
}
this.ch = ch;
}
@@
-419,7
+419,7
@@
public final class Cell extends CellAttributes {
int B = 23;
int hash = A;
hash = (B * hash) + super.hashCode();
int B = 23;
int hash = A;
hash = (B * hash) + super.hashCode();
- hash = (B * hash) +
(int)
ch;
+ hash = (B * hash) + ch;
hash = (B * hash) + width.hashCode();
if (image != null) {
/*
hash = (B * hash) + width.hashCode();
if (image != null) {
/*