Browse Source

Ajout getISPWithID pour l'Action ID

Martin Passard 7 years ago
parent
commit
ee705a73ea
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/main/Cache.java

+ 9 - 0
src/main/Cache.java

@@ -205,6 +205,15 @@ public class Cache implements AffichableSurIRC {
 		return null;
 
 	}
+	
+	public ISP getISPWithID(int id) {
+		for(ISP i:cache) {
+			if(i.getId() == id) {
+				return i;
+			}
+		}
+		return null;
+	}
 
 
 }