Changeset 1102 for trunk/src/org/expeditee/gui/Overlay.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Overlay.java
r919 r1102 20 20 21 21 import java.util.Collection; 22 import java.util.LinkedList; 23 import java.util.List; 22 24 23 25 import org.expeditee.items.UserAppliedPermission; 26 import org.expeditee.items.widgets.Widget; 24 27 28 /** TODO: Comment. cts16 */ 25 29 public class Overlay { 30 /** TODO: Comment. cts16 */ 26 31 public Frame Frame; 27 32 33 /** TODO: Comment. cts16 */ 28 34 public UserAppliedPermission permission; 29 35 36 /** TODO: Comment. cts16 */ 30 37 public Overlay(Frame overlay, UserAppliedPermission level) { 31 38 Frame = overlay; … … 34 41 35 42 @Override 36 public boolean equals(Object o) {37 if (o == null || o.getClass() != Overlay.class)38 43 public boolean equals(Object o) 44 { 45 if (!(o instanceof Overlay)) return false; 39 46 40 47 return ((Overlay) o).Frame == Frame; … … 42 49 43 50 @Override 44 public int hashCode() { 51 public int hashCode() 52 { 53 // TODO: Comment. cts16 45 54 return 0; 46 55 } 47 48 public static Overlay getOverlay(Collection<Overlay>overlays, Frame frame){ 56 57 /** TODO: Comment. cts16 */ 58 public static Overlay getOverlay(Collection<Overlay> overlays, Frame frame) 59 { 49 60 // Check the frame is in the list of overlays 50 61 for (Overlay o : overlays) {
Note:
See TracChangeset
for help on using the changeset viewer.