001    /**
002     * Implements the Cold Fusion Function structfind
003     */
004    package railo.runtime.functions.struct;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.PageException;
008    import railo.runtime.ext.function.Function;
009    import railo.runtime.type.Collection;
010    import railo.runtime.type.Struct;
011    
012    public final class StructFind implements Function {
013            public static Object call(PageContext pc , Struct struct, String key) throws PageException {
014                    return struct.get(key);
015            }
016            public static Object call(PageContext pc , Struct struct, Collection.Key key) throws PageException {
017                    return struct.get(key);
018            }
019    }