Package org.simpleframework.xml.core
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
PartMap
private PartMap()
-
-
Method Details
-
iterator
This returns an iterator for the Java Bean method names for theMethodPart
objects that are stored in the map. This allows names to be iterated easily in a for loop. -
take
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
-