public boolean equals(KahaDestination obj) { if (hasType() ^ obj.hasType() ) return false; if (hasType() && ( !getType().equals(obj.getType()) )) return false; if (hasName() ^ obj.hasName() ) return false; if (hasName() && ( !getName().equals(obj.getName()) )) return false; return true; }
public boolean equals(KahaDestination obj) { if (hasType() ^ obj.hasType() ) return false; if (hasType() && ( !getType().equals(obj.getType()) )) return false; if (hasName() ^ obj.hasName() ) return false; if (hasName() && ( !getName().equals(obj.getName()) )) return false; return true; }
public boolean equals(KahaDestination obj) { if (hasType() ^ obj.hasType() ) return false; if (hasType() && ( !getType().equals(obj.getType()) )) return false; if (hasName() ^ obj.hasName() ) return false; if (hasName() && ( !getName().equals(obj.getName()) )) return false; return true; }
/** * Determine whether this Destination matches the DestinationType * * @param destination * @param type * @return */ protected boolean matchType(Destination destination, KahaDestination.DestinationType type) { if (destination instanceof Topic && type.equals(KahaDestination.DestinationType.TOPIC)) { return true; } else if (destination instanceof Queue && type.equals(KahaDestination.DestinationType.QUEUE)) { return true; } return false; }
/** * Determine whether this Destination matches the DestinationType * * @param destination * @param type * @return */ protected boolean matchType(Destination destination, KahaDestination.DestinationType type) { if (destination instanceof Topic && type.equals(KahaDestination.DestinationType.TOPIC)) { return true; } else if (destination instanceof Queue && type.equals(KahaDestination.DestinationType.QUEUE)) { return true; } return false; }
/** * Determine whether this Destination matches the DestinationType * * @param destination * @param type * @return */ protected boolean matchType(Destination destination, KahaDestination.DestinationType type) { if (destination instanceof Topic && type.equals(KahaDestination.DestinationType.TOPIC)) { return true; } else if (destination instanceof Queue && type.equals(KahaDestination.DestinationType.QUEUE)) { return true; } return false; }
public boolean equals(KahaDestination obj) { if (hasType() ^ obj.hasType() ) return false; if (hasType() && ( !getType().equals(obj.getType()) )) return false; if (hasName() ^ obj.hasName() ) return false; if (hasName() && ( !getName().equals(obj.getName()) )) return false; return true; }
/** * Determine whether this Destination matches the DestinationType * * @param destination * @param type * @return */ protected boolean matchType(Destination destination, KahaDestination.DestinationType type) { if (destination instanceof Topic && type.equals(KahaDestination.DestinationType.TOPIC)) { return true; } else if (destination instanceof Queue && type.equals(KahaDestination.DestinationType.QUEUE)) { return true; } return false; }