public static TriggerContext on ( Trigger trigger ) { List < Trigger > addedTriggers = new ArrayList < Trigger > ( ) ; if ( trigger != null ) { addedTriggers . add ( trigger ) ; } return new TriggerContext ( addedTriggers ) ; }
Adds the specified trigger to the validator under construction .