< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMask.java

Print this page
@@ -619,10 +619,21 @@
      @Override
      public final int hashCode() {
          return Objects.hash(vectorSpecies(), Arrays.hashCode(toArray()));
      }
  
+     /**
+      * Compresses set lanes from this mask.
+      *
+      * Returns a mask which is a series of {@code N} set lanes
+      * followed by a series of unset lanes, where {@code N} is
+      * the true count of this mask.
+      *
+      * @return the compressed mask of this mask
+      */
+     public abstract VectorMask<E> compress();
+ 
      // ==== JROSE NAME CHANGES ====
  
      // TYPE CHANGED
      // * toVector() return type is Vector<?> not Vector<E>
      // ADDED
< prev index next >