Examples of removeField()


Examples of com.esotericsoftware.kryo.serializers.CompatibleFieldSerializer.removeField()

    object1.child = new TestClass();
    object1.other = new AnotherClass();
    object1.other.value = "meow";

    CompatibleFieldSerializer serializer = new CompatibleFieldSerializer(kryo, TestClass.class);
    serializer.removeField("text");
    kryo.register(TestClass.class, serializer);
    kryo.register(AnotherClass.class, new CompatibleFieldSerializer(kryo, AnotherClass.class));
    roundTrip(74, 74, object1);

    kryo.register(TestClass.class, new CompatibleFieldSerializer(kryo, TestClass.class));
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.CompatibleFieldSerializer.removeField()

    kryo.register(TestClass.class, new CompatibleFieldSerializer(kryo, TestClass.class));
    roundTrip(88, 88, object1);

    CompatibleFieldSerializer serializer = new CompatibleFieldSerializer(kryo, TestClass.class);
    serializer.removeField("text");
    kryo.register(TestClass.class, serializer);
    Object object2 = kryo.readClassAndObject(input);
    assertEquals(object1, object2);
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.FieldSerializer.removeField()

    test.StringField = null;
    roundTrip(67, 87, test);

    FieldSerializer serializer = (FieldSerializer)kryo.getSerializer(DefaultTypes.class);
    serializer.removeField("LongField");
    serializer.removeField("floatField");
    serializer.removeField("FloatField");
    roundTrip(55, 75, test);

    supportsCopy = true;
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.FieldSerializer.removeField()

    test.StringField = null;
    roundTrip(67, 87, test);

    FieldSerializer serializer = (FieldSerializer)kryo.getSerializer(DefaultTypes.class);
    serializer.removeField("LongField");
    serializer.removeField("floatField");
    serializer.removeField("FloatField");
    roundTrip(55, 75, test);

    supportsCopy = true;
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.FieldSerializer.removeField()

    roundTrip(67, 87, test);

    FieldSerializer serializer = (FieldSerializer)kryo.getSerializer(DefaultTypes.class);
    serializer.removeField("LongField");
    serializer.removeField("floatField");
    serializer.removeField("FloatField");
    roundTrip(55, 75, test);

    supportsCopy = true;
  }
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.TaggedFieldSerializer.removeField()

    object1.child = new TestClass();
    object1.other = new AnotherClass();
    object1.other.value = "meow";

    TaggedFieldSerializer serializer = new TaggedFieldSerializer(kryo, TestClass.class);
    serializer.removeField("text");
    kryo.register(TestClass.class, serializer);
    kryo.register(AnotherClass.class, new TaggedFieldSerializer(kryo, AnotherClass.class));
    roundTrip(39, 55, object1);

    kryo.register(TestClass.class, new TaggedFieldSerializer(kryo, TestClass.class));
View Full Code Here

Examples of com.lowagie.text.pdf.AcroFields.removeField()

        // we are not in append mode, let's remove existing signatures
        // (otherwise we're getting to troubles)
        final AcroFields acroFields = stp.getAcroFields();
        final List<String> sigNames = acroFields.getSignatureNames();
        for (String sigName : sigNames) {
          acroFields.removeField(sigName);
        }
      }
      if (options.isEncryptedX()) {
        options.log("console.setEncryption");
        final int tmpRight = options.getRightPrinting().getRight()
View Full Code Here

Examples of com.massivecraft.mcore.xlib.mongodb.BasicDBObject.removeField()

  {
    DBCollection dbcoll = fixColl(coll);
    BasicDBObject raw = (BasicDBObject)dbcoll.findOne(new BasicDBObject(ID_FIELD, id));
    if (raw == null) return null;
   
    Long mtime = ((Number)raw.removeField(MTIME_FIELD)).longValue();
    raw.removeField(ID_FIELD);
   
    JsonElement element = GsonMongoConverter.mongo2GsonObject(raw);
   
    return new SimpleEntry<JsonElement, Long>(element, mtime);
View Full Code Here

Examples of com.mongodb.BasicDBObject.removeField()

        dto.setType(inventoryItem.getType());

        // Prune any sensitive information from the payload
        if (!dto.isOwner()) {
            if (payload.containsField("adminPassword")) {
                payload.removeField("adminPassword");
            }
            if (payload.containsField("credentials")) {
                payload.removeField("credentials");
            }
        }
View Full Code Here

Examples of com.mongodb.DBObject.removeField()

            throws StandardCodedException {
        final DBObject filter = new BasicDBObject(_ID, id);
        // removeOne empty arrays
        final DBObject item = this.removeEmptyArrays(object);
        // removeOne _id for update of other fields
        item.removeField(_ID);
        final DBObject operation = new BasicDBObject("$set", item);
        // save
        return this.update(filter, operation, true, false);
        // object.put(_ID, id);    // add _id
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.