Exemple #1
0
 /** @see railo.runtime.type.Collection#_setEL(java.lang.String, java.lang.Object) */
 public Object setEL(Collection.Key key, Object value) {
   try {
     return setEL(Caster.toIntValue(key.getString()), value);
   } catch (ExpressionException e) {
     return null;
   }
 }
Exemple #2
0
 /** @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key, java.lang.Object) */
 public Object get(Collection.Key key, Object defaultValue) {
   double index = Caster.toIntValue(key.getString(), Integer.MIN_VALUE);
   if (index == Integer.MIN_VALUE) return defaultValue;
   return get((int) index, defaultValue);
 }
Exemple #3
0
 /** @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key) */
 public Object get(Collection.Key key) throws ExpressionException {
   return getE(Caster.toIntValue(key.getString()));
 }
Exemple #4
0
 public Object removeEL(Collection.Key key) {
   return removeEL(Caster.toIntValue(key.getString(), -1));
 }
Exemple #5
0
 /** @see railo.runtime.type.Collection#_set(java.lang.String, java.lang.Object) */
 public Object set(Collection.Key key, Object value) throws ExpressionException {
   return setE(Caster.toIntValue(key.getString()), value);
 }