Conversation
| import java.util.Arrays; | ||
|
|
||
| /** | ||
| * Converts different between representations of trytes, bytes, trits and numbers. |
There was a problem hiding this comment.
Converts different between -> Converts between different
| * <p> | ||
| * This class also provides additional conversion tools: | ||
| * <ul> | ||
| * <li>Converting Trits to numerical values based on <i>Balance Ternary</i> arithmetic</li> |
There was a problem hiding this comment.
Balance Ternary -> Balanced ternary
|
|
||
| /** | ||
| * Creates a new trits array with the converted tryte string.<br> | ||
| * should be used most for testing, as it allocates memory. |
There was a problem hiding this comment.
should be used most for testing, as it allocates memory
->
should be used mainly for testing as it allocates memory.
I would even go as far as: use only for testing as it allocates memory.
| // Long <-> Trits | ||
|
|
||
| /** | ||
| * Parses the trits argument as a long value, based on <i>Balance Ternary</i> arithmetic |
There was a problem hiding this comment.
Balance Ternary -> Balanced ternary
| } | ||
|
|
||
| /** | ||
| * fills a trit array with a representation of the {@code value} argument in <i>Balance Ternary</i> arithmetic |
There was a problem hiding this comment.
Balance Ternary -> Balanced ternary
|
|
||
| /** | ||
| * Converts trits array to bytes array based on {@link #NUMBER_OF_TRITS_IN_A_BYTE}.<br> | ||
| * this method will over-ride the content of {@code dest} |
There was a problem hiding this comment.
over-ride -> override :nerd_face
|
btw, @jakubcech - Github just added a cool feature to suggest changes: see the +- symbol (ctrl+g) https://blog.github.com/2018-10-16-future-of-software/#suggested-changes-public-beta |
Description
Code comments for the Converter.java class.
Fixes # 1117
Type of change
I haven't documented the
Pair<->Tritsmethods. I don't see them in use either than testing and frankly didn't follow what each method does.Issues to open:
pos&offsetare used interchangeably