public static CachePeekMode[] decodeCachePeekModes(int modes){
  CachePeekMode[] res=CACHE_PEEK_MODES[modes];
  if (res == null) {
    List<CachePeekMode> res0=new ArrayList<>(CACHE_PEEK_MODES_CNT);
    for (int i=0; i < CACHE_PEEK_MODES_CNT; i++) {
      int mask=1 << i;
      if ((modes & mask) == mask)       res0.add(CachePeekMode.fromOrdinal((byte)i));
    }
    res=res0.toArray(new CachePeekMode[res0.size()]);
synchronized (PlatformUtils.class) {
      CACHE_PEEK_MODES[modes]=res;
    }
  }
  return res;
}

public static CachePeekMode [ ] decodeCachePeekModes ( int modes ) { CachePeekMode [ ] res = CACHE_PEEK_MODES [ modes ] ; if ( res == null ) { List < CachePeekMode > res0 = new ArrayList < > ( CACHE_PEEK_MODES_CNT ) ; for ( int i = 0 ; i < CACHE_PEEK_MODES_CNT ; i ++ ) { int mask = 1 << i ; if ( ( modes & mask ) == mask ) res0 . add ( CachePeekMode . fromOrdinal ( ( byte ) i ) ) ; } res = res0 . toArray ( new CachePeekMode [ res0 . size ( ) ] ) ; synchronized ( PlatformUtils . class ) { CACHE_PEEK_MODES [ modes ] = res ; } } return res ; }
convert native cache peek modes to java cache peek modes .
