text:
package com.amazonaws.services.ec2.model;

import java.io.Serializable;

import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateDhcpOptionsRequestMarshaller;

/**
 * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#createDhcpOptions(CreateDhcpOptionsRequest) CreateDhcpOptions operation}.
 *

 * Creates a set of DHCP options for your VPC. After creating the set,
 * you must associate it with the VPC, causing all existing and new
 * instances that you launch in the VPC to use this set of DHCP options.
 * The following are the individual DHCP options you can specify. For
 * more information about the options, see
 *  RFC 2132
 * .
 *

 *
 *

 *
 domain-name-servers - The IP addresses of up to
 * four domain name servers, or AmazonProvidedDNS . The
 * default DHCP option set specifies AmazonProvidedDNS . If
 * specifying more than one domain name server, specify the IP addresses
 * in a single parameter, separated by commas.

 *
 domain-name - If you're using AmazonProvidedDNS in
 * us-east-1 ,
 * specify ec2.internal . If you're using
 * AmazonProvidedDNS in another region, specify
 * region.compute.internal (for example,
 * ap-northeast-1.compute.internal ). Otherwise, specify a
 * domain name (for example, MyCompany.com ).
 * Important : Some Linux operating systems accept multiple domain
 * names separated by spaces. However, Windows and other Linux operating
 * systems treat the value as a single domain, which results in
 * unexpected behavior. If your DHCP options set is associated with a VPC
 * that has instances with multiple operating systems, specify only one
 * domain name.

 *
 ntp-servers - The IP addresses of up to four
 * Network Time Protocol (NTP) servers.

 *
 netbios-name-servers - The IP addresses of up to
 * four NetBIOS name servers.

 *
 netbios-node-type - The NetBIOS node type (1, 2, 4,
 * or 8). We recommend that you specify 2 (broadcast and multicast are
 * not currently supported). For more information about these node types,
 * see
 *  RFC 2132
 * .

 *
 *

 *

 * Your VPC automatically starts out with a set of DHCP options that
 * includes only a DNS server that we provide (AmazonProvidedDNS). If you
 * create a set of options, and if your VPC has an Internet gateway, make
 * sure to set the domain-name-servers option either to
 * AmazonProvidedDNS or to a domain name server of your
 * choice. For more information about DHCP options, see
 *  DHCP Options Sets
 * in the Amazon Virtual Private Cloud User Guide .
 *

 *
 * @see com.amazonaws.services.ec2.AmazonEC2#createDhcpOptions(CreateDhcpOptionsRequest)
 */
public class CreateDhcpOptionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateDhcpOptionsRequest> {

    /**
     * A DHCP configuration option.
     */
    private com.amazonaws.internal.ListWithAutoConstructFlag<DhcpConfiguration> dhcpConfigurations;

    /**
     * Default constructor for a new CreateDhcpOptionsRequest object.  Callers should use the
     * setter or fluent setter (with...) methods to initialize this object after creating it.
     */
    public CreateDhcpOptionsRequest() {}

    /**
     * Constructs a new CreateDhcpOptionsRequest object.
     * Callers should use the setter or fluent setter (with...) methods to
     * initialize any additional object members.
     *
     * @param dhcpConfigurations A DHCP configuration option.
     */
    public CreateDhcpOptionsRequest(java.util.List<DhcpConfiguration> dhcpConfigurations) {
        setDhcpConfigurations(dhcpConfigurations);
    }

    /**
     * A DHCP configuration option.
     *
     * @return A DHCP configuration option.
     */
    public java.util.List<DhcpConfiguration> getDhcpConfigurations() {
        if (dhcpConfigurations == null) {
              dhcpConfigurations = new com.amazonaws.internal.ListWithAutoConstructFlag<DhcpConfiguration>();
              dhcpConfigurations.setAutoConstruct(true);
        }
        return dhcpConfigurations;
    }

    /**
     * A DHCP configuration option.
     *
     * @param dhcpConfigurations A DHCP configuration option.
     */
    public void setDhcpConfigurations(java.util.Collection<DhcpConfiguration> dhcpConfigurations) {
        if (dhcpConfigurations == null) {
            this.dhcpConfigurations = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<DhcpConfiguration> dhcpConfigurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<DhcpConfiguration>(dhcpConfigurations.size());
        dhcpConfigurationsCopy.addAll(dhcpConfigurations);
        this.dhcpConfigurations = dhcpConfigurationsCopy;
    }

    /**
     * A DHCP configuration option.
     *

     * NOTE: This method appends the values to the existing list (if
     * any). Use {@link #setDhcpConfigurations(java.util.Collection)} or
     * {@link #withDhcpConfigurations(java.util.Collection)} if you want to
     * override the existing values.
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param dhcpConfigurations A DHCP configuration option.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public CreateDhcpOptionsRequest withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations) {
        if (getDhcpConfigurations() == null) setDhcpConfigurations(new java.util.ArrayList<DhcpConfiguration>(dhcpConfigurations.length));
        for (DhcpConfiguration value : dhcpConfigurations) {
            getDhcpConfigurations().add(value);
        }
        return this;
    }

    /**
     * A DHCP configuration option.
     *

     * Returns a reference to this object so that method calls can be chained together.
     *
     * @param dhcpConfigurations A DHCP configuration option.
     *
     * @return A reference to this updated object so that method calls can be chained
     *         together.
     */
    public CreateDhcpOptionsRequest withDhcpConfigurations(java.util.Collection<DhcpConfiguration> dhcpConfigurations) {
        if (dhcpConfigurations == null) {
            this.dhcpConfigurations = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<DhcpConfiguration> dhcpConfigurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<DhcpConfiguration>(dhcpConfigurations.size());
            dhcpConfigurationsCopy.addAll(dhcpConfigurations);
            this.dhcpConfigurations = dhcpConfigurationsCopy;
        }

        return this;
    }

    /**
     * This method is intended for internal use only.
     * Returns the marshaled request configured with additional parameters to
     * enable operation dry-run.
     */
    @Override
    public Request<CreateDhcpOptionsRequest> getDryRunRequest() {
        Request<CreateDhcpOptionsRequest> request = new CreateDhcpOptionsRequestMarshaller().marshall(this);
        request.addParameter("DryRun", Boolean.toString(true));
        return request;
    }

    /**
     * Returns a string representation of this object; useful for testing and
     * debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getDhcpConfigurations() != null) sb.append("DhcpConfigurations: " + getDhcpConfigurations() );
        sb.append("}");
        return sb.toString();
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getDhcpConfigurations() == null) ? 0 : getDhcpConfigurations().hashCode());
        return hashCode;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;

        if (obj instanceof CreateDhcpOptionsRequest == false) return false;
        CreateDhcpOptionsRequest other = (CreateDhcpOptionsRequest)obj;

        if (other.getDhcpConfigurations() == null ^ this.getDhcpConfigurations() == null) return false;
        if (other.getDhcpConfigurations() != null && other.getDhcpConfigurations().equals(this.getDhcpConfigurations()) == false) return false;
        return true;
    }

    @Override
    public CreateDhcpOptionsRequest clone() {

            return (CreateDhcpOptionsRequest) super.clone();
    }

}


text:
<?php

use Pace\Model;
use Pace\KeyCollection;
use PHPUnit\Framework\TestCase;

class KeyCollectionTest extends TestCase
{
    public function tearDown(): void
    {
        Mockery::close();
    }

    public function testAll()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2, 3]);
        $model->shouldReceive('read')->times(3)->andReturnSelf();
        $all = $collection->all();
        $this->assertIsArray($all);
        $this->assertContainsOnlyInstancesOf(Model::class, $all);
    }

    public function testCountable()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2, 3]);
        $this->assertCount(3, $collection);
        $collection = new KeyCollection($model, []);
        $this->assertCount(0, $collection);
    }

    public function testIterator()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2, 3]);
        $model->shouldReceive('read')->with(1)->once()->andReturnSelf();
        $model->shouldReceive('read')->with(2)->once()->andReturnSelf();
        $model->shouldReceive('read')->with(3)->once()->andReturnSelf();
        $this->assertContainsOnlyInstancesOf(Model::class, $collection);
    }

    public function testDiff()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2, 3]);
        $diff = $collection->diff([3, 4, 5]);
        $this->assertInstanceOf(KeyCollection::class, $diff);
        $this->assertArrayHasKey(1, $diff);
        $this->assertArrayHasKey(2, $diff);
        $this->assertArrayNotHasKey(3, $diff);
    }

    public function testFirst()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [4, 5, 6]);
        $model->shouldReceive('read')->with(4)->once()->andReturnSelf();
        $this->assertInstanceOf(Model::class, $collection->first());
    }

    public function testLast()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [4, 5, 6]);
        $model->shouldReceive('read')->with(6)->once()->andReturnSelf();
        $this->assertInstanceOf(Model::class, $collection->last());
    }

    public function testGetThrowsOutOfBoundsException()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1]);
        $this->expectException(OutOfBoundsException::class);
        $collection->get(2);
    }

    public function testHas()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [4, 5, '6A']);
        $this->assertTrue($collection->has(5));
        $this->assertFalse($collection->has(7));
        $this->assertTrue($collection->has('6A'));
        $this->assertFalse($collection->has(6));
    }

    public function testIsEmpty()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, []);
        $this->assertTrue($collection->isEmpty());
        $collection = new KeyCollection($model, [1, 2, 3]);
        $this->assertFalse($collection->isEmpty());
    }

    public function testJsonSerializable()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [5]);
        $model->shouldReceive('read')->with(5)->once()->andReturnSelf();
        $array = $collection->jsonSerialize();
        $this->assertInstanceOf('JsonSerializable', $collection);
        $this->assertIsArray($array);
        $this->assertContainsOnlyInstancesOf('JsonSerializable', $array);
    }

    public function testArrayAccess()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [7, 8, 9]);
        $model->shouldReceive('read')->with(8)->once()->andReturnSelf();
        $this->assertFalse(isset($collection[6]));
        $this->assertTrue(isset($collection[7]));
        $this->assertInstanceOf(Model::class, $collection[8]);
    }

    public function testImmutableSet()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, []);
        $this->expectException(RuntimeException::class);
        $collection[0] = 1;
    }

    public function testImmutableUnset()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1]);
        $this->expectException(RuntimeException::class);
        unset($collection[1]);
    }

    public function testPaginate()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2, 3, 4, 5, 6, 7, 8, 9]);
        $paginated = $collection->paginate(1, 5);
        $this->assertInstanceOf(KeyCollection::class, $paginated);
        $this->assertEquals([1, 2, 3, 4, 5], $paginated->keys());
        $paginated = $collection->paginate(2, 5);
        $this->assertEquals([6, 7, 8, 9], $paginated->keys());
    }

    public function testCastToString()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1]);
        $model->shouldReceive('read')->with(1)->once()->andReturnSelf();
        $model->shouldReceive('jsonSerialize')->once()->andReturn(['id' => 1, 'name' => 'John Smith']);
        $this->assertEquals(json_encode([1 => ['id' => 1, 'name' => 'John Smith']]), $collection);
    }

    public function testReadOnEmptyCollection()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, []);
        $this->assertNull($collection->current());
    }

    public function testPluck()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2]);
        $model->shouldReceive('read')->with(1)->once()->andReturnSelf();
        $model->shouldReceive('read')->with(2)->once()->andReturnSelf();
        $model->shouldReceive('getAttribute')->with('value')->once()->andReturn('Test 1');
        $model->shouldReceive('getAttribute')->with('value')->once()->andReturn('Test 2');
        $list = $collection->pluck('value');
        $this->assertEquals('Test 1', $list[0]);
        $this->assertEquals('Test 2', $list[1]);
    }

    public function testPluckWithKey()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2]);
        $model->shouldReceive('read')->with(1)->once()->andReturnSelf();
        $model->shouldReceive('read')->with(2)->once()->andReturnSelf();
        $model->shouldReceive('getAttribute')->with('key')->once()->andReturn(3);
        $model->shouldReceive('getAttribute')->with('key')->once()->andReturn(4);
        $model->shouldReceive('getAttribute')->with('value')->once()->andReturn('Test 1');
        $model->shouldReceive('getAttribute')->with('value')->once()->andReturn('Test 2');
        $list = $collection->pluck('value', 'key');
        $this->assertEquals('Test 1', $list[3]);
        $this->assertEquals('Test 2', $list[4]);
    }

    public function testFilterKeys()
    {
        $model = Mockery::mock(Model::class);
        $collection = new KeyCollection($model, [1, 2, 3, 4]);
        $filtered = $collection->filterKeys(function ($key) {
            return $key % 2 == 0;
        });
        $this->assertInstanceOf(KeyCollection::class, $filtered);
        $this->assertEquals([2, 4], $filtered->keys());
    }
}

redpajama_set_name: RedPajamaGithub


text:
package br.com.swconsultoria.nfe.schema_4.consStatServ;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * Tipo Resultado da Consulta do Status do Serviço
 *
 *
Classe Java de TRetConsStatServ complex type.
 *
 *
O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
 *
 *

 * <complexType name="TRetConsStatServ">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
 *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
 *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
 *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
 *         <element name="cUF" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
 *         <element name="dhRecbto" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
 *         <element name="tMed" type="{http://www.portalfiscal.inf.br/nfe}TMed" minOccurs="0"/>
 *         <element name="dhRetorno" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/>
 *         <element name="xObs" type="{http://www.portalfiscal.inf.br/nfe}TMotivo" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerConsStatServ" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TRetConsStatServ", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = {
    "tpAmb",
    "verAplic",
    "cStat",
    "xMotivo",
    "cuf",
    "dhRecbto",
    "tMed",
    "dhRetorno",
    "xObs"
})
public class TRetConsStatServ {

    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
    protected String tpAmb;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
    protected String verAplic;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
    protected String cStat;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
    protected String xMotivo;
    @XmlElement(name = "cUF", namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
    protected String cuf;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
    protected String dhRecbto;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
    protected String tMed;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
    protected String dhRetorno;
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
    protected String xObs;
    @XmlAttribute(name = "versao", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String versao;

    /**
     * Obtém o valor da propriedade tpAmb.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getTpAmb() {
        return tpAmb;
    }

    /**
     * Define o valor da propriedade tpAmb.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setTpAmb(String value) {
        this.tpAmb = value;
    }

    /**
     * Obtém o valor da propriedade verAplic.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getVerAplic() {
        return verAplic;
    }

    /**
     * Define o valor da propriedade verAplic.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setVerAplic(String value) {
        this.verAplic = value;
    }

    /**
     * Obtém o valor da propriedade cStat.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getCStat() {
        return cStat;
    }

    /**
     * Define o valor da propriedade cStat.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCStat(String value) {
        this.cStat = value;
    }

    /**
     * Obtém o valor da propriedade xMotivo.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getXMotivo() {
        return xMotivo;
    }

    /**
     * Define o valor da propriedade xMotivo.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setXMotivo(String value) {
        this.xMotivo = value;
    }

    /**
     * Obtém o valor da propriedade cuf.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getCUF() {
        return cuf;
    }

    /**
     * Define o valor da propriedade cuf.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCUF(String value) {
        this.cuf = value;
    }

    /**
     * Obtém o valor da propriedade dhRecbto.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getDhRecbto() {
        return dhRecbto;
    }

    /**
     * Define o valor da propriedade dhRecbto.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setDhRecbto(String value) {
        this.dhRecbto = value;
    }

    /**
     * Obtém o valor da propriedade tMed.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getTMed() {
        return tMed;
    }

    /**
     * Define o valor da propriedade tMed.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setTMed(String value) {
        this.tMed = value;
    }

    /**
     * Obtém o valor da propriedade dhRetorno.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getDhRetorno() {
        return dhRetorno;
    }

    /**
     * Define o valor da propriedade dhRetorno.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setDhRetorno(String value) {
        this.dhRetorno = value;
    }

    /**
     * Obtém o valor da propriedade xObs.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getXObs() {
        return xObs;
    }

    /**
     * Define o valor da propriedade xObs.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setXObs(String value) {
        this.xObs = value;
    }

    /**
     * Obtém o valor da propriedade versao.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getVersao() {
        return versao;
    }

    /**
     * Define o valor da propriedade versao.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setVersao(String value) {
        this.versao = value;
    }

}


text:
struct aiMesh;

class ofxAssimpMeshHelper {

public:

	ofxAssimpMeshHelper();

    bool hasTexture();
    ofTexture & getTextureRef();

    aiMesh * mesh; // pointer to the aiMesh we represent.

    ofVbo vbo;

    ofxAssimpTexture assimpTexture;
    vector<ofIndexType> indices;

    ofMaterial material;

    ofBlendMode blendMode;

    bool twoSided;
    bool hasChanged;

    vector<aiVector3D> animatedPos;
    vector<aiVector3D> animatedNorm;

    ofMesh cachedMesh;
    bool validCache;

    ofMatrix4x4 matrix;
};


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>Dialog Decodiert einfügen</TITLE>
<link rel="stylesheet" type="text/css" href="CrypTool_Help.css">

<OBJECT TYPE="application/x-oleobject" CLASSID="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" VIEWASTEXT ID="Object1">
    <PARAM NAME="Keyword" VALUE="Dialog (Übersicht aller Dialoge)">
    <PARAM NAME="Keyword" VALUE="Hexadezimale Ein- / Ausgaben">
    <PARAM NAME="Keyword" VALUE="Fenster">
</OBJECT>

Dialog Decodiert einfügen

Dieser Dialog erscheint, wenn Sie in ein Fenster für
hexadezimale Ein-/Ausgaben Inhalt aus der Zwischenablage einfügen wollen.


text:
var user = { name : 'gordon '}
var server = { name: 'ymatchx', url : 'www.ymatchx.com'}
var buyPropertys = new Map();

user = gun.get( user.name ).put( user )
server = gun.get( 'server' ).put( server )
// Add new property
var property = { name: 'double cove', location : 'wu ka sha', price : '18000', typeTo : 'sell', typeBy : 'forSellBy'}

function add() {
  // create property and assign location
  property.get('building/'+property.name).path(property.location).set(property);
  property.get('building/'+property.name).put(null)

  // user sale home for sell by user
  user.path(property.typeTo).put( property )
      .path(property.typeBy).put(user)

  // Tell server home for sale
  server.path(property.type).set( property )
}

// listen to update
function listen() {
  var that = this;

  server.path('sell').map().on()
  server.path('buy').map().on( (p) => {
    // if matched, insert to buyPropertys
     if ( match( that.propertyForSell, p ) ) {
       that.buyPropertys.set( p );
     }
  })
  server.path('lease').map().on()
  server.path('rent').map().on()
}

// delete
function remove( key , property ) {
  property.get('building/'+property.name).put(null)
}

function match( y, x ) {
  return true;
}

// Loading user's properties
function load() {
// Pre contion : user
// loading properties for sale
   user.path('sell').map().val( (p) => {
      console.log('loading ', p )
})

function update(property) {
   user.path('sell').put({...property})
}

}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
javax.xml.crypto.dsig 类分层结构 (Java Platform SE 6)
</TITLE>

<META NAME="date" CONTENT="2007-03-19">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

      概述
      软件包
      类
      使用
    树
      已过时
      索引
      帮助

JavaTM Platform
Standard Ed. 6

 上一个
 下一个

  框架
 无框架

  所有类

软件包 javax.xml.crypto.dsig 的分层结构

软件包分层结构:
所有软件包

类分层结构

java.lang.Object

java.lang.Throwable (implements java.io.Serializable)

java.lang.Exception

javax.xml.crypto.dsig.TransformException
javax.xml.crypto.dsig.XMLSignatureException

javax.xml.crypto.dsig.TransformService (implements javax.xml.crypto.dsig.Transform)

javax.xml.crypto.dsig.XMLSignatureFactory

接口分层结构

javax.xml.crypto.AlgorithmMethod

javax.xml.crypto.dsig.DigestMethod (并 extends javax.xml.crypto.XMLStructure)

javax.xml.crypto.dsig.SignatureMethod (并 extends javax.xml.crypto.XMLStructure)

javax.xml.crypto.dsig.Transform (并 extends javax.xml.crypto.XMLStructure)

javax.xml.crypto.dsig.CanonicalizationMethod

javax.xml.crypto.URIReference

javax.xml.crypto.dsig.Reference (并 extends javax.xml.crypto.XMLStructure)

javax.xml.crypto.XMLCryptoContext

javax.xml.crypto.dsig.XMLSignContext
javax.xml.crypto.dsig.XMLValidateContext

javax.xml.crypto.XMLStructure

javax.xml.crypto.dsig.DigestMethod (并 extends javax.xml.crypto.AlgorithmMethod)

javax.xml.crypto.dsig.Manifest
javax.xml.crypto.dsig.Reference (并 extends javax.xml.crypto.URIReference)

javax.xml.crypto.dsig.SignatureMethod (并 extends javax.xml.crypto.AlgorithmMethod)

javax.xml.crypto.dsig.SignatureProperties
javax.xml.crypto.dsig.SignatureProperty
javax.xml.crypto.dsig.SignedInfo
javax.xml.crypto.dsig.Transform (并 extends javax.xml.crypto.AlgorithmMethod)

javax.xml.crypto.dsig.CanonicalizationMethod

javax.xml.crypto.dsig.XMLObject
javax.xml.crypto.dsig.XMLSignature
javax.xml.crypto.dsig.XMLSignature.SignatureValue

      概述
      软件包
      类
      使用
    树
      已过时
      索引
      帮助

JavaTM Platform
Standard Ed. 6

 上一个
 下一个

  框架
 无框架

  所有类

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。