< prev index next >

src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/ResourcePool.java

Print this page




  78      * @param data The module data to check existence for.
  79      * @return The module data or null if not found.
  80      */
  81     public boolean contains(ResourcePoolEntry data);
  82 
  83     /**
  84      * Check if the ResourcePool contains some content at all.
  85      *
  86      * @return True, no content, false otherwise.
  87      */
  88     public boolean isEmpty();
  89 
  90     /**
  91      * The ByteOrder currently in use when generating the jimage file.
  92      *
  93      * @return The ByteOrder.
  94      */
  95     public ByteOrder byteOrder();
  96 
  97     /**
  98      * Release properties such as OS, CPU name, version etc.
  99      *
 100      * @return the release properties
 101      */
 102     public Map<String, String> releaseProperties();
 103 
 104     /**
 105      * Visit each ResourcePoolEntry in this ResourcePool to transform it and copy
 106      * the transformed ResourcePoolEntry to the output ResourcePoolBuilder.
 107      *
 108      * @param transform The function called for each ResourcePoolEntry found in the
 109      * ResourcePool. The transform function should return a ResourcePoolEntry
 110      * instance which will be added to the output or it should return null if
 111      * the passed ResourcePoolEntry is to be ignored for the output.
 112      *
 113      * @param outBuilder The ResourcePoolBuilder to be filled with Visitor returned
 114      * ResourcePoolEntries.
 115      */
 116     public default void transformAndCopy(
 117             Function<ResourcePoolEntry, ResourcePoolEntry> transform,
 118             ResourcePoolBuilder outBuilder) {
 119         entries().forEach(resource -> {
 120             ResourcePoolEntry res = transform.apply(resource);
 121             if (res != null) {
 122                 outBuilder.add(res);
 123             }
 124         });


  78      * @param data The module data to check existence for.
  79      * @return The module data or null if not found.
  80      */
  81     public boolean contains(ResourcePoolEntry data);
  82 
  83     /**
  84      * Check if the ResourcePool contains some content at all.
  85      *
  86      * @return True, no content, false otherwise.
  87      */
  88     public boolean isEmpty();
  89 
  90     /**
  91      * The ByteOrder currently in use when generating the jimage file.
  92      *
  93      * @return The ByteOrder.
  94      */
  95     public ByteOrder byteOrder();
  96 
  97     /**







  98      * Visit each ResourcePoolEntry in this ResourcePool to transform it and copy
  99      * the transformed ResourcePoolEntry to the output ResourcePoolBuilder.
 100      *
 101      * @param transform The function called for each ResourcePoolEntry found in the
 102      * ResourcePool. The transform function should return a ResourcePoolEntry
 103      * instance which will be added to the output or it should return null if
 104      * the passed ResourcePoolEntry is to be ignored for the output.
 105      *
 106      * @param outBuilder The ResourcePoolBuilder to be filled with Visitor returned
 107      * ResourcePoolEntries.
 108      */
 109     public default void transformAndCopy(
 110             Function<ResourcePoolEntry, ResourcePoolEntry> transform,
 111             ResourcePoolBuilder outBuilder) {
 112         entries().forEach(resource -> {
 113             ResourcePoolEntry res = transform.apply(resource);
 114             if (res != null) {
 115                 outBuilder.add(res);
 116             }
 117         });
< prev index next >