1 17 package org.alfresco.web.bean.clipboard; 18 19 import org.alfresco.web.bean.repository.Node; 20 21 24 public class ClipboardItem 25 { 26 32 public ClipboardItem(Node node, ClipboardStatus mode) 33 { 34 this.Node = node; 35 this.Mode = mode; 36 } 37 38 41 public boolean equals(Object obj) 42 { 43 if (obj == this) 44 { 45 return true; 46 } 47 if (obj instanceof ClipboardItem) 48 { 49 return ((ClipboardItem)obj).Node.getNodeRef().equals(Node.getNodeRef()); 50 } 51 else 52 { 53 return false; 54 } 55 } 56 57 60 public int hashCode() 61 { 62 return Node.getNodeRef().hashCode(); 63 } 64 65 66 public Node Node; 67 public ClipboardStatus Mode; 68 } 69 | Popular Tags |