java: Add the WatchPatterns class and make the KeyValue static

Change-Id: I7e10262015fbcdfc371b8d90d52e83b2ce581bd4
2 files changed