MCPcopy Create free account
hub / github.com/Syncleus/aparapi / compareTo

Method compareTo

src/main/java/com/aparapi/device/Device.java:183–197  ·  view source on GitHub ↗
(Device other)

Source from the content-addressed store, hash-verified

181 }
182
183 public int compareTo(Device other) {
184 if (type.rank < other.type.rank) {
185 return -1;
186 } else if (type.rank > other.type.rank) {
187 return 1;
188 }
189
190 if (getDeviceId() < other.getDeviceId()) {
191 return -1;
192 } else if (getDeviceId() > other.getDeviceId()) {
193 return 1;
194 }
195
196 return 0;
197 }
198}

Callers

nothing calls this directly

Calls 1

getDeviceIdMethod · 0.95

Tested by

no test coverage detected