(Object o)
| 708 | // -------------------------------------------------------------------------- |
| 709 | |
| 710 | public boolean equals (Object o) { |
| 711 | if (this == o) { |
| 712 | return true; |
| 713 | } |
| 714 | if (o == null || !(o instanceof Type)) { |
| 715 | return false; |
| 716 | } |
| 717 | Type t = (Type)o; |
| 718 | if (sort != t.sort) { |
| 719 | return false; |
| 720 | } |
| 721 | if (sort == Type.OBJECT || sort == Type.ARRAY) { |
| 722 | if (len != t.len) { |
| 723 | return false; |
| 724 | } |
| 725 | for (int i = off, j = t.off, end = i + len; i < end; i++, j++) { |
| 726 | if (buf[i] != t.buf[j]) { |
| 727 | return false; |
| 728 | } |
| 729 | } |
| 730 | } |
| 731 | return true; |
| 732 | } |
| 733 | |
| 734 | public int hashCode () { |
| 735 | int hc = 13 * sort; |
no outgoing calls
no test coverage detected