private static Map < IAtom , Integer > indexMap ( Map < IAtom , Integer > map , IAtomContainer container ) { if ( map != null ) return map ; map = new HashMap < IAtom , Integer > ( ) ; for ( IAtom a : container . atoms ( ) ) { map . put ( a , map . size ( ) ) ; } return map ; }
Lazy creation of an atom index map .