public boolean lessThan(ORBVersion version) { return orbType < version.getORBType(); }
public boolean equals(Object obj) { if (!(obj instanceof ORBVersion)) return false; ORBVersion version = (ORBVersion) obj; return version.getORBType() == orbType; }
public boolean equals(Object obj) { if (!(obj instanceof ORBVersion)) return false; ORBVersion version = (ORBVersion) obj; return version.getORBType() == orbType; }
public boolean lessThan(ORBVersion version) { return orbType < version.getORBType(); }
public int compareTo(ORBVersion obj) { // The Comparable interface says that this // method throws a ClassCastException if the // given object's type prevents it from being // compared. return getORBType() - obj.getORBType(); } }
public int compareTo(ORBVersion obj) { // The Comparable interface says that this // method throws a ClassCastException if the // given object's type prevents it from being // compared. return getORBType() - obj.getORBType(); } }
/** * Checks the version of the ORB and returns the appropriate RepositoryIdStrings instance. */ public static RepositoryIdStrings getRepIdStringsFactory(ORB orb) { if (orb != null) { switch (orb.getORBVersion().getORBType()) { case ORBVersion.NEWER : case ORBVersion.FOREIGN : case ORBVersion.JDK1_3_1_01 : return currentDelegator; case ORBVersion.OLD : return legacyDelegator; case ORBVersion.NEW : return ladybirdDelegator; default : return currentDelegator; } } else return currentDelegator; }
/** * Checks the version of the ORB and returns the appropriate RepositoryIdStrings instance. */ public static RepositoryIdStrings getRepIdStringsFactory(ORB orb) { if (orb != null) { switch (orb.getORBVersion().getORBType()) { case ORBVersion.NEWER : case ORBVersion.FOREIGN : case ORBVersion.JDK1_3_1_01 : return currentDelegator; case ORBVersion.OLD : return legacyDelegator; case ORBVersion.NEW : return ladybirdDelegator; default : return currentDelegator; } } else return currentDelegator; }
/** * Checks the version of the ORB and returns the appropriate RepositoryIdUtility instance. */ public static RepositoryIdUtility getRepIdUtility(ORB orb) { if (orb != null) { switch (orb.getORBVersion().getORBType()) { case ORBVersion.NEWER : case ORBVersion.FOREIGN : case ORBVersion.JDK1_3_1_01 : return currentDelegator; case ORBVersion.OLD : return legacyDelegator; case ORBVersion.NEW : return ladybirdDelegator; default : return currentDelegator; } } else return currentDelegator; } }
/** * Checks the version of the ORB and returns the appropriate RepositoryIdUtility instance. */ public static RepositoryIdUtility getRepIdUtility(ORB orb) { if (orb != null) { switch (orb.getORBVersion().getORBType()) { case ORBVersion.NEWER : case ORBVersion.FOREIGN : case ORBVersion.JDK1_3_1_01 : return currentDelegator; case ORBVersion.OLD : return legacyDelegator; case ORBVersion.NEW : return ladybirdDelegator; default : return currentDelegator; } } else return currentDelegator; } }