Class jDrop
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.JFunctorImpl
-
- edu.uiuc.ncsa.security.util.functor.strings.jDrop
-
- All Implemented Interfaces:
JFunctor
,JMetaMetaFunctor
,JSONFunctor
,Serializable
public class jDrop extends JFunctorImpl
$drop[A,B] removes A from B and returns the rest, e.g.
$drop["@bigstate.edu","bob@bigstate.edu"]
would return the string "bob". This is very useful for dropping things from the ends of string. If A is not a substring of B then nothing happens. E.g. drop "abcdf" from "abc" has no effect (so watch the order of your arguments.) Also, this removes all occurances, so removing "ab" from abcabc returns cc.Created by Jeff Gaynor
on 4/23/18 at 4:47 PM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.util.functor.JFunctorImpl
args, executed, result, type
-
-
Constructor Summary
Constructors Constructor Description jDrop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute()
protected String
getStringArg(int index)
-
Methods inherited from class edu.uiuc.ncsa.security.util.functor.JFunctorImpl
addArg, addArg, addArg, addArg, addArg, addArg, checkArgs, checkArgs, clearState, getArgs, getBooleanResult, getIntResult, getListResult, getName, getResult, getStringResult, isExecuted, reset, toJSON, toString
-
-