Here you can find the source of isContains(List roles, String role, String module)
protected static boolean isContains(List roles, String role, String module)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { protected static boolean isContains(List roles, String role, String module) {/*w w w .j av a 2 s.c o m*/ if (roles.contains(module.toLowerCase() + ":" + role)) { return true; } return false; } }