47 |
Key k = (Key)o; |
Key k = (Key)o; |
48 |
return parent == k.parent && key.equals(k.key); |
return parent == k.parent && key.equals(k.key); |
49 |
} |
} |
50 |
|
public String toString() { |
51 |
|
return "DefaultVobMatcher key: "+key+" parent: "+parent; |
52 |
|
} |
53 |
} |
} |
54 |
void ensure(int n) { |
void ensure(int n) { |
55 |
if(n+1 > keyByCs.length) { |
if(n+1 > keyByCs.length) { |
56 |
Key[] nu = new Key[2*n+1]; |
Key[] nu = new Key[2*n+1]; |
57 |
System.arraycopy(keyByCs, 0, nu, 0, maxcs); |
System.arraycopy(keyByCs, 0, nu, 0, maxcs+1); |
58 |
keyByCs = nu; |
keyByCs = nu; |
59 |
} |
} |
60 |
if(n > maxcs) maxcs = n; |
if(n > maxcs) maxcs = n; |
92 |
return k == NULL ? null : k; |
return k == NULL ? null : k; |
93 |
} |
} |
94 |
|
|
95 |
|
public void dump() { |
96 |
|
for(int i=1; i<=maxcs; i++) { |
97 |
|
if(keyByCs[i] != null) { |
98 |
|
pa("CS "+i+": key: "+keyByCs[i]); |
99 |
|
} else { |
100 |
|
pa("CS "+i+" ----------"); |
101 |
|
} |
102 |
|
} |
103 |
|
} |
104 |
|
|
105 |
public int[] interpList(VobMatcher other0) { |
public int[] interpList(VobMatcher other0) { |
106 |
DefaultVobMatcher other = (DefaultVobMatcher)other0; |
DefaultVobMatcher other = (DefaultVobMatcher)other0; |
107 |
int[] interpList = new int[maxcs+1]; |
int[] interpList = new int[maxcs+1]; |