1313 * @param locationSet the set of locations where this constraint node is defined
1414 */
1515@ NullMarked
16- public record ConstraintNodeProfileId (long key , StreamKind streamKind , Qualifier qualifier ,
16+ public record ConstraintNodeProfileId (int key , StreamKind streamKind , Qualifier qualifier ,
1717 SortedSet <ConstraintNodeLocation > locationSet )
1818 implements
1919 Comparable <ConstraintNodeProfileId > {
2020
21- public ConstraintNodeProfileId (long key , StreamKind streamKind , SortedSet <ConstraintNodeLocation > locationSet ) {
21+ public ConstraintNodeProfileId (int key , StreamKind streamKind , SortedSet <ConstraintNodeLocation > locationSet ) {
2222 this (key , streamKind , Qualifier .NONE , locationSet );
2323 }
2424
@@ -31,12 +31,12 @@ public boolean equals(Object object) {
3131
3232 @ Override
3333 public int hashCode () {
34- return Long .hashCode (key );
34+ return Integer .hashCode (key );
3535 }
3636
3737 @ Override
3838 public int compareTo (ConstraintNodeProfileId other ) {
39- return Long .compare (key , other .key );
39+ return Integer .compare (key , other .key );
4040 }
4141
4242 @ Override
@@ -64,7 +64,7 @@ public String toString() {
6464 public String toVerboseString () {
6565 var toString = toString ();
6666 if (locationSet .size () == 1 ) {
67- var location = locationSet .iterator (). next ();
67+ var location = locationSet .getFirst ();
6868 return "%s defined at location %s" .formatted (toString , location );
6969 }
7070 return "%s shared at locations %s" .formatted (toString , locationSet );
0 commit comments