Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
533 B
15 lines
533 B
package org.openrs2.asm.packclass
|
|
|
|
public data class MemberRef(
|
|
public val clazz: String,
|
|
public val nameAndType: NameAndType
|
|
) : Comparable<MemberRef> {
|
|
public constructor(clazz: String, name: String, descriptor: String) : this(clazz, NameAndType(name, descriptor))
|
|
|
|
public val name: String = nameAndType.name
|
|
public val descriptor: String = nameAndType.descriptor
|
|
|
|
override fun compareTo(other: MemberRef): Int {
|
|
return compareValuesBy(this, other, MemberRef::clazz, MemberRef::nameAndType)
|
|
}
|
|
}
|
|
|