Here you can find the source of isMemoryData(String metric)
public static boolean isMemoryData(String metric)
//package com.java2s; public class Main { public static boolean isMemoryData(String metric) { if (metric == null) { return false; }//from w w w . j a v a 2s.co m if (metric.indexOf("mem") > -1) { return true; } return false; } }