# ArrayOps **Repository Path**: congrats/ArrayOps ## Basic Information - **Project Name**: ArrayOps - **Description**: A simple array operation framework for java - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2014-06-27 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #ArrayOps ------ ###What's it? It provides a simple framework of Java's array operatoins.
You can easily customize it through relevant interface.
###For waht? Actually, I didn't find a very convenience and pretty interface for array's operation in JDK, such as add, substract, filt. You might think of the `Arrays` utils, but it still can not satify above requirment. So I create it for my daily work and share it for people that meet the same requirements. ###How to use Coding like this: ``` import static net.haibo.utils.ArrayOps.*; String s = "no news is a good news"; List the = new ArrayList(Arrays.asList(s.split("[\\s]"))); System.out.println(the); List filt = arrayBuilder(the).filt(sMatchWith("^.*s.*$")).build(); List sub = arrayBuilder(the).subtract(filt).build(); List add = arrayBuilder(sub).add(filt).build(); System.out.println(filt); System.out.println(sub); System.out.println(add); ```
OUTPUT: ``` [no, news, is, a, good, news] [news, is, news] [no, a, good] [no, a, good, news, is, news] ```