Parcourir la source

Ajout getISPWithID pour l'Action ID

Martin Passard il y a 7 ans
Parent
commit
ee705a73ea
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  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;
+	}
 
 
 }