Advertisement
krismanohar

Untitled

Apr 19th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1.     protected static boolean performActionInFileFromStartToEnd(File file, ItemAction action,int startIndex, int endIndex ){
  2.         return performActionInFileFromStartToEndAndCloseAction(file, action, startIndex, endIndex, new ItemAction() {
  3.             @Override
  4.             public boolean doAction(File item) {   
  5.                 return true;
  6.             }
  7.         });//Null close action
  8.     }
  9.  
  10.     protected static boolean performActionInFile(File file, ItemAction action){
  11.         return performActionInFileFromStartToEnd(file, action, 0, -1);//internal signal to do all
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement