Class MethodScanner.PartMap

All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Map<String,MethodPart>, SequencedMap<String,MethodPart>
Enclosing class:
MethodScanner

private static class MethodScanner.PartMap extends LinkedHashMap<String,MethodPart> implements Iterable<String>
The PartMap is used to contain method parts using the Java Bean method name for the part. This ensures that the scanned and extracted methods can be acquired using a common name, which should be the parsed Java Bean method name.
See Also:
  • Constructor Details

    • PartMap

      private PartMap()
  • Method Details

    • iterator

      public Iterator<String> iterator()
      This returns an iterator for the Java Bean method names for the MethodPart objects that are stored in the map. This allows names to be iterated easily in a for loop.
      Specified by:
      iterator in interface Iterable<String>
      Returns:
      this returns an iterator for the method name keys
    • take

      public MethodPart take(String name)
      This is used to acquire the method part for the specified method name. This will remove the method part from this map so that it can be checked later to ensure what remains.
      Parameters:
      name - this is the method name to get the method with
      Returns:
      this returns the method part for the given key