Return a scalar {@code Codec} for the given range.

@param domain the domain of the returned {@code Codec}
@return a new scalar {@code Codec} with the given domain.
@throws NullPointerException if the given {@code domain} is {@code null}
439972
public static Codec<Double, DoubleGene> ofScalar(final DoubleRange domain) {
		requireNonNull(domain);

		return Codec.of(
			Genotype.of(DoubleChromosome.of(domain)),
			gt -> gt.getGene().getAllele()
		);
	}
1067703
static ObjectName createObjectName(final String domain, final PathAddress pathAddress) {
        return createObjectName(domain, pathAddress, null);
    }
732969
public Observable<ServiceResponse<Domain>> getDomainWithServiceResponseAsync(UUID domainId) {
        if (domainId == null) {
            throw new IllegalArgumentException("Parameter domainId is required and cannot be null.");
        }
        if (this.client.apiKey() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
        }
        return service.getDomain(domainId, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Domain>>>() {
                @Override
                public Observable<ServiceResponse<Domain>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<Domain> clientResponse = getDomainDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
520409
public <T> DomainObjectMatch<T> AS(Class<T> domainObjectType) {
		CollectExpression ce = (CollectExpression)this.astObject;
		DomainObjectMatch<T> ret =APIAccess.createDomainObjectMatch(domainObjectType,
				ce.getQueryExecutor().getDomainObjectMatches().size(),
				ce.getQueryExecutor().getMappingInfo());
		ce.setEnd(ret);
		ce.getQueryExecutor().getDomainObjectMatches().add(ret);
		QueryRecorder.recordAssignment(this, "AS", ret, QueryRecorder.literal(domainObjectType.getName()));
		return ret;
	}
922442
public static Domain create(final String name) throws AppPlatformException, ParseException, Exception {
        return create(name, null);
    }
8360
public void writeDomainAddress(byte[] domain) throws KNXTimeoutException,
		KNXLinkClosedException
	{
		if (domain.length != 2 && domain.length != 6)
			throw new KNXIllegalArgumentException("invalid length of domain address");
		tl.broadcast(true, priority, DataUnitBuilder.createAPDU(DOA_WRITE, domain));
	}
1334961
public GetDomainCacheTTLResponse getDomainCacheTTL(String domain) {
        GetDomainCacheTTLRequest request = new GetDomainCacheTTLRequest().withDomain(domain);
        return getDomainCacheTTL(request);
    }
225337
public static final SegmentWithRange encode(final SegmentRange segmentRange) {
        return new SegmentWithRange(encode(segmentRange.getSegmentId()), segmentRange.getMinKey(), segmentRange
                .getMaxKey());
    }
497650
@SuppressWarnings("unchecked")
	public <T> DomainObjectMatch<T> createMatchFrom(DomainObjectMatch<T> domainObjectMatch) {
		DomainObjectMatch<T> ret;
		FromPreviousQueryExpression pqe;
		DomainObjectMatch<?> match;
		DomainObjectMatch<?> delegate = APIAccess.getDelegate(domainObjectMatch);
		if (delegate != null) { // generic model
			DomainObjectMatch<?> newDelegate = APIAccess.createDomainObjectMatch(delegate,
					this.queryExecutor.getDomainObjectMatches().size(),
					this.queryExecutor.getMappingInfo());
			this.queryExecutor.getDomainObjectMatches().add(newDelegate);
			pqe = new FromPreviousQueryExpression(
					newDelegate, delegate);
			ret = (DomainObjectMatch<T>) APIAccess.createDomainObjectMatch(DomainObject.class, newDelegate);
			match = newDelegate;
		} else {
			ret = APIAccess.createDomainObjectMatch(domainObjectMatch,
					this.queryExecutor.getDomainObjectMatches().size(),
					this.queryExecutor.getMappingInfo());
			this.queryExecutor.getDomainObjectMatches().add(ret);
			pqe = new FromPreviousQueryExpression(
					ret, domainObjectMatch);
			match = ret;
		}
		this.queryExecutor.addAstObject(pqe);
		QueryRecorder.recordAssignment(this, "createMatchFrom", match,
				QueryRecorder.reference(domainObjectMatch));
		return ret;
	}
1236779
public Cookie get(String name, String domain) {
		for(Cookie cookie : this) {
			if(cookie.getName().equals(name) && cookie.getDomain().equals(domain))
				return cookie; 
		}
		return null;
	}
752017
public static dnstxtrec get(nitro_service service, String domain) throws Exception{
		dnstxtrec obj = new dnstxtrec();
		obj.set_domain(domain);
		dnstxtrec response = (dnstxtrec) obj.get_resource(service);
		return response;
	}
1281514
public static dnssoarec get(nitro_service service, String domain) throws Exception{
		dnssoarec obj = new dnssoarec();
		obj.set_domain(domain);
		dnssoarec response = (dnssoarec) obj.get_resource(service);
		return response;
	}
62945
public final synchronized void setDomainAddress(final byte[] domain)
	{
		if (domain == null)
			doa = broadcastDomain;
		else if (domain.length != 6)
			throw new KNXIllegalArgumentException("invalid length of domain address");
		else
			doa = (byte[]) domain.clone();
	}
290720
public GetOneDomainPlayCountResponse getOneDomainPlayCount(GetOneDomainStatisticsRequest request) {
        checkNotNull(request, "The parameter request should NOT be null.");

        checkNotNull(request.getDomain(), "The domain parameter can not be null");
        checkStringNotEmpty(request.getTimeInterval(), "timeInterval should NOT be null");
        checkStringNotEmpty(request.getStartTime(), "startTime should NOT be null");

        InternalRequest internalRequest = createRequest(HttpMethodName.GET, request,
                STATISTICS, LIVE_DOMAIN, request.getDomain(), "playcount");

        internalRequest.addParameter("timeInterval", request.getTimeInterval());
        internalRequest.addParameter("startTime", request.getStartTime());
        if (request.getEndTime() != null) {
            internalRequest.addParameter("endTime", request.getEndTime());
        }
        return invokeHttpClient(internalRequest, GetOneDomainPlayCountResponse.class);
    }
77296
public static dnsnsrec get(nitro_service service, String domain) throws Exception{
		dnsnsrec obj = new dnsnsrec();
		obj.set_domain(domain);
		dnsnsrec response = (dnsnsrec) obj.get_resource(service);
		return response;
	}
845619
public String getNextPageUrl(String domain, String region) {
        if (nextPageUrl != null) {
            return nextPageUrl;
        }

        return urlFromUri(domain, region, nextPageUri);
    }
288960
public GetStreamResponse getStream(String domain, String app, String stream) {
        GetStreamRequest request = new GetStreamRequest();
        request.withPlayDomain(domain).withApp(app).withStream(stream);
        return getStream(request);
    }