Java String Empty isEmptyturnlane(String turns)

Here you can find the source of isEmptyturnlane(String turns)

Description

is Emptyturnlane

License

GNU General Public License

Declaration

public static boolean isEmptyturnlane(String turns) 

Method Source Code

//package com.java2s;
// License: GPL. For details, see LICENSE file.

import java.util.Arrays;
import java.util.List;

public class Main {
    public static boolean isEmptyturnlane(String turns) {
        List<String> turnsList = Arrays.asList("reverse", "sharp_left", "left", "slight_left", "merge_to_right",
                "through", "reversible", "merge_to_left", "slight_right", "right", "sharp_right");
        for (String tl : turnsList) {
            if (turns.contains(tl)) {
                return true;
            }/*from w w w  . j ava  2s . c  om*/
        }
        return false;
    }
}

Related

  1. isEmpty(String sTest_)
  2. isEmpty(String str)
  3. isEmpty(String str)
  4. isEmpty(String str)
  5. isEmpty(String text)
  6. isNotEmpty(String str)
  7. isNullOrEmpty(String message, String string)
  8. isNullOrEmpty(String value)
  9. splitAt(String s, String delimiter, boolean includeEmpty)