Java List Contain isContains(List roles, String role, String module)

Here you can find the source of isContains(List roles, String role, String module)

Description

is Contains

License

Apache License

Declaration

protected static boolean isContains(List roles, String role,
        String module) 

Method Source Code

//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;
    }
}

Related

  1. identityContains(Object o, List list)
  2. indexOfLineContaining(List lines, String s)
  3. isContain(List list, Integer i)
  4. isContainedInAll(String keyToSearch, List> list)
  5. isContains(final Object value, final Object... list)
  6. isEitherContains(List one, List two)
  7. isListContainAll(List list, T... checkItems)
  8. isListContainsDuplicateElement(List oneList)
  9. pathContains(List path, String source, String label, String target)