public void setDefaultFingerprints(int num) {
    setEnrolledFingerprints(
        IntStream.range(0, num)
            .mapToObj(
                i ->
                    new Fingerprint(
                        /* name= */ "Fingerprint " + i,
                        /* groupId= */ 0,
                        /* fingerId= */ i,
                        /* deviceId= */ 0))
            .toArray(Fingerprint[]::new));
  }
public void setDefaultFingerprints(int num) {
    setEnrolledFingerprints(
        IntStream.range(0, num)
            .mapToObj(
                i ->
                    new Fingerprint(
                         "Fingerprint " + i,
                         0,
                         i,
                         0))
            .toArray(Fingerprint[]::new));
  }
public void setDefaultFingerprints ( int num ) { setEnrolledFingerprints ( IntStream . range ( 0 , num ) . mapToObj ( i -> new Fingerprint ( /* name= */ "Fingerprint " + i , /* groupId= */ 0 , /* fingerId= */ i , /* deviceId= */ 0 ) ) . toArray ( Fingerprint [ ] :: new ) ) ; }
Enrolls the given number of fingerprints, which will be returned in {@link
#getEnrolledFingerprints}.

@param num the quantity of fingerprint item.
Enrolls the given number of fingerprints which will be returned in { @link #getEnrolledFingerprints } .