public override void add(Object obj) { if (setJ.contains(obj) == false) { base.add(obj); setJ.add(obj); } }
/* Set operations */ /** * If a <code>CollectionMutator</code> is defined for this CompositeSet then this * method will be called anyway. * * @param obj Object to be removed * @return true if the object is removed, false otherwise */ public override bool remove(Object obj) { for (java.util.Iterator <Object> i = this.getCollections().iterator(); i.hasNext();) { java.util.Set <Object> set = (java.util.Set <Object>)i.next(); if (set.contains(obj)) { return(set.remove(obj)); } } return(false); }
public static ComponentOrientation getOrientation(java.util.Locale locale) { String lang = locale.getLanguage(); return(rlLangs.contains(lang) ? RIGHT_TO_LEFT : LEFT_TO_RIGHT); }
public bool contains(Object provider) { return(outgoingNodes.contains(provider)); }
/// <summary> /// Adds the given assembly to the included set, if and only /// if it is not contained by the encountered set and it /// is not a system assembly; a core HSQLDB assembly; an /// IKVM assembly; an NUnit assembly or a TestDriven.NET /// assembly. /// </summary> /// <remarks> /// The exclusion list could be made much larger to produce /// a higher quality included set, but at what price? /// </remarks> /// <param name="encountered">The assemblies encountered so far.</param> /// <param name="included">The assemblies included so far.</param> /// <param name="entry">The assembly to add.</param> internal static void AddAssembly( Set encountered, Set included, Assembly entry) { if (entry == null || encountered.contains(entry)) { return; } else { encountered.add(entry); } string simpleName = entry.GetName().Name; // ignored (performance optimization) if (simpleName == "System" || simpleName == "mscorlib" || simpleName == "Org.Hsqldb" || simpleName.StartsWith("System.") || simpleName.StartsWith("IKVM.") || simpleName.StartsWith("nunit.") || simpleName.StartsWith("TestDriven.")) { return; } else { included.add(entry); } try { Assembly satellite = entry.GetSatelliteAssembly(CultureInfo.CurrentCulture); IkvmResourceLoaderFactory.AddAssembly( encountered, included, satellite); } catch (Exception ex) { #if DEBUG Debug.WriteLine(ex); #endif } AssemblyName[] referencedAssemblies = entry.GetReferencedAssemblies(); for (int i = 0; i < referencedAssemblies.Length; i++) { AssemblyName assemblyName = referencedAssemblies[i]; try { Assembly referencedAssembly = Assembly.Load(assemblyName); IkvmResourceLoaderFactory.AddAssembly( encountered, included, referencedAssembly); } catch (System.Exception ex) { #if DEBUG Debug.WriteLine(ex); #endif } } }
internal bool hasRule(Parser.DirectiveType directiveType, String directiveValue) { return(rules.contains(new Rule(directiveType, directiveValue))); }
/// <summary> /// Adds the given assembly to the included set, if and only /// if it is not contained by the encountered set and it /// is not a system assembly; a core HSQLDB assembly; an /// IKVM assembly; an NUnit assembly or a TestDriven.NET /// assembly. /// </summary> /// <remarks> /// The exclusion list could be made much larger to produce /// a higher quality included set, but at what price? /// </remarks> /// <param name="encountered">The assemblies encountered so far.</param> /// <param name="included">The assemblies included so far.</param> /// <param name="entry">The assembly to add.</param> internal static void AddAssembly( Set encountered, Set included, Assembly entry) { if (entry == null || encountered.contains(entry)) { return; } else { encountered.add(entry); } string simpleName = entry.GetName().Name; // ignored (performance optimization) if (simpleName == "System" || simpleName == "mscorlib" || simpleName == "Org.Hsqldb" || simpleName.StartsWith("System.") || simpleName.StartsWith("IKVM.") || simpleName.StartsWith("nunit.") || simpleName.StartsWith("TestDriven.")) { return; } else { included.add(entry); } try { Assembly satellite = entry.GetSatelliteAssembly(CultureInfo.CurrentCulture); IkvmResourceLoaderFactory.AddAssembly( encountered, included, satellite); } catch (Exception ex) { #if DEBUG Debug.WriteLine(ex); #endif } AssemblyName[] referencedAssemblies = entry.GetReferencedAssemblies(); for (int i = 0; i < referencedAssemblies.Length; i++) { AssemblyName assemblyName = referencedAssemblies[i]; try { Assembly referencedAssembly = Assembly.Load(assemblyName); IkvmResourceLoaderFactory.AddAssembly( encountered, included, referencedAssembly); } catch (System.Exception ex) { #if DEBUG Debug.WriteLine(ex); #endif } } }