private AlphaNode getFirstAlphaNode(final ObjectHashMap hashedAlphaNodes) throws IllegalArgumentException {
        AlphaNode firstAlphaNode;

        final Iterator iter = hashedAlphaNodes.iterator();
        final ObjectHashMap.ObjectEntry entry = (ObjectHashMap.ObjectEntry) iter.next();

        if (entry != null) {
            firstAlphaNode = (AlphaNode) entry.getValue();
        } else {
            throw new IllegalArgumentException("ObjectHashMap does not contain any hashed AlphaNodes!");
        }

        return firstAlphaNode;
    }
private AlphaNode getFirstAlphaNode ( final ObjectHashMap hashedAlphaNodes ) throws IllegalArgumentException { AlphaNode firstAlphaNode ; final Iterator iter = hashedAlphaNodes . iterator ( ) ; final ObjectHashMap . ObjectEntry entry = ( ObjectHashMap . ObjectEntry ) iter . next ( ) ; if ( entry != null ) { firstAlphaNode = ( AlphaNode ) entry . getValue ( ) ; } else { throw new IllegalArgumentException ( "ObjectHashMap does not contain any hashed AlphaNodes!" ) ; } return firstAlphaNode ; }
Returns the first {@link org.kie.reteoo.AlphaNode} from the specified {@link ObjectHashMap}.

@param hashedAlphaNodes map of hashed AlphaNodes
@return first alpha from the specified map
@throws IllegalArgumentException thrown if the map doesn't contain any alpha nodes