Convert general names from Bouncy Castle general names.

@param genNames Bouncy castle general names.
@return a list of X.509 general names.
548103
public static List<X509GeneralName> getX509GeneralNames(GeneralNames genNames)
    {
        if (genNames == null) {
            return null;
        }

        GeneralName[] names = genNames.getNames();
        List<X509GeneralName> x509names = new ArrayList<X509GeneralName>(names.length);

        for (GeneralName name : names) {
            switch (name.getTagNo()) {
                case GeneralName.rfc822Name:
                    x509names.add(new X509Rfc822Name(name));
                    break;
                case GeneralName.dNSName:
                    x509names.add(new X509DnsName(name));
                    break;
                case GeneralName.directoryName:
                    x509names.add(new X509DirectoryName(name));
                    break;
                case GeneralName.uniformResourceIdentifier:
                    x509names.add(new X509URI(name));
                    break;
                case GeneralName.iPAddress:
                    x509names.add(new X509IpAddress(name));
                    break;
                default:
                    x509names.add(new X509GenericName(name));
                    break;
            }
        }

        return x509names;
    }
113844
public String[] getChildNames() {
	if (children == null || children.size() == 0) return EMPTY_NAMES;
	String[] arr = new String[children.size()];
	for (int i = 0; i < arr.length; i++) {
	    arr[i] = ((RamResourceCore) children.get(i)).getName();
	}
	return arr;
    }
874491
public void setDomainNames(java.util.Collection<String> domainNames) {
        if (domainNames == null) {
            this.domainNames = null;
            return;
        }

        this.domainNames = new java.util.ArrayList<String>(domainNames);
    }
1289279
public ListDomainNamesResult withDomainNames(java.util.Map<String, String> domainNames) {
        setDomainNames(domainNames);
        return this;
    }
353478
void getSingletonNames(Set<String> singletons) {
        for (Map.Entry<String, ConfigurationList<SimpleElement>> entry : configurationMap.entrySet()) {
            ConfigurationList<SimpleElement> list = entry.getValue();
            if (!list.isEmpty() && !list.hasId()) {
                singletons.add(entry.getKey());
            }
        }
    }
1200107
public String[] getAllNames() {
        final List<String> vec = new ArrayList<String>();
        this.getAllNamesAux(vec);
        return vec.toArray(new String[vec.size()]);
    }
15324
public Set<String> getPropertyNames() {
    return Sets.newHashSet(
        Iterables.concat(this.commonProperties.stringPropertyNames(), this.specProperties.stringPropertyNames()));
  }
983040
public static Collection<Class<?>> getTypes(Collection<String> typeNames) {
        Set<Class<?>> types = new HashSet<>();
        for (String typeName : typeNames) {
            types.add(ClassHelper.getType(typeName));
        }
        return types;
    }
1045051
public List<String> getSupportedNameIdFormats() {
        val nameIdFormats = new ArrayList<String>();
        val children = this.ssoDescriptor.getOrderedChildren();
        if (children != null) {
            nameIdFormats.addAll(children.stream().filter(NameIDFormat.class::isInstance)
                .map(child -> ((NameIDFormat) child).getFormat()).collect(Collectors.toList()));
        }
        return nameIdFormats;
    }
1199343
def gen_list_name():
    
    for name in _LIST_NAMES:
        yield name

    counter = itertools.count(1000)
    while True:
        yield b(str(next(counter))) + b"\x00"
1163587
private ImmutableList<Function> getAtomsForGenerators(Collection<TreeWitnessGenerator> gens, Term r0)  {
		return TreeWitnessGenerator.getMaximalBasicConcepts(gens, reasoner).stream()
				.map(con -> {
					log.debug("  BASIC CONCEPT: {}", con);
					if (con instanceof OClass) {
						return atomFactory.getMutableTripleBodyAtom(r0, ((OClass) con).getIRI());
					}
					else if (con instanceof ObjectSomeValuesFrom) {
						ObjectPropertyExpression ope = ((ObjectSomeValuesFrom)con).getProperty();
						return (!ope.isInverse())
								? atomFactory.getMutableTripleBodyAtom(r0, ope.getIRI(), getFreshVariable())
								: atomFactory.getMutableTripleBodyAtom(getFreshVariable(), ope.getIRI(), r0);
					}
					else {
						DataPropertyExpression dpe = ((DataSomeValuesFrom)con).getProperty();
						return atomFactory.getMutableTripleBodyAtom(r0, dpe.getIRI(), getFreshVariable());
					}
				})
				.collect(ImmutableCollectors.toList());
	}
402640
private JSONArray getAlternativeNames(Collection<List<?>> alternativeNames) {

        if (alternativeNames == null || alternativeNames.size() == 0) {
            return null;
        }

        JSONArray altNames = new JSONArray();
        for (List<?> altName : alternativeNames) {
            //int altNameType = (Integer) altName.get(0);  // XXX For now we're going to ignore the type
            //                                             // We might want to do something special later.
            String altNameValue = altName.get(1).toString();
            altNames.put(altNameValue);
        }

        return altNames;
    }
1190533
public java.util.Map<String, String> getDomainNames() {
        if (domainNames == null) {
            domainNames = new com.amazonaws.internal.SdkInternalMap<String, String>();
        }
        return domainNames;
    }
1195539
public List<Set<String>> getActualTableNameGroups(final String dataSourceName, final Set<String> logicTableNames) {
        List<Set<String>> result = new ArrayList<>();
        for (String logicTableName : logicTableNames) {
            Set<String> actualTableNames = getActualTableNames(dataSourceName, logicTableName);
            if (!actualTableNames.isEmpty()) {
                result.add(actualTableNames);
            }
        }
        return result;
    }
699362
public List<Type> methodGenericTypes() {
        return methodGenerics.isEmpty()
                ? Collections.<Type>emptyList() : new ArrayList<Type>(methodGenerics.values());
    }
1015428
public Set<String> getArgumentNames() {
        Set<String> result = new HashSet<String>();
        for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) {
            result.add(getArgName(partIndex + 1));
        }
        return result;
    }
587042
public java.util.List<String> getBaseEndpointDnsNames() {
        if (baseEndpointDnsNames == null) {
            baseEndpointDnsNames = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return baseEndpointDnsNames;
    }