Subversion Repositories SmartDukaan

Rev

Rev 23201 | Rev 23370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23201 Rev 23369
Line 106... Line 106...
106
			result = false;
106
			result = false;
107
		}
107
		}
108
		return result;
108
		return result;
109
	}
109
	}
110
	
110
	
-
 
111
	public static boolean isValidGstNumber(String gstNumber) {
-
 
112
		if(gstNumber == null || gstNumber.length() != 15) {
-
 
113
			return true;
-
 
114
		}
-
 
115
		return false;
-
 
116
	}
-
 
117
	
111
	public static List<String> getDuplicateElements(List<String> elements){
118
	public static List<String> getDuplicateElements(List<String> elements){
112
		List<String> duplicates = new ArrayList<>();
119
		List<String> duplicates = new ArrayList<>();
113
		for(int i = 0; i < elements.size(); i++){
120
		for(int i = 0; i < elements.size(); i++){
114
			for(int j = i + 1; j < elements.size(); j++){
121
			for(int j = i + 1; j < elements.size(); j++){
115
				if(elements.get(i).equals(elements.get(j))){
122
				if(elements.get(i).equals(elements.get(j))){