Examples of asFloat()


Examples of com.workingdogs.village.Value.asFloat()

                if (value.isDate()) obj2 = value.asDate();
                if (value.isShort()) obj2 = new Short(value.asShort());
                if (value.isInt()) obj2 = new Integer(value.asInt());
                if (value.isLong()) obj2 = new Long(value.asLong());
                if (value.isDouble()) obj2 = new Double(value.asDouble());
                if (value.isFloat()) obj2 = new Float(value.asFloat());
                if (value.isBoolean()) obj2 = new Boolean(value.asBoolean());
                if (value.isString()) obj2 = value.asString();
                if (value.isTime()) obj2 = value.asTime();
                if (value.isTimestamp()) obj2 = value.asTimestamp();
                if (value.isUtilDate()) obj2 = value.asUtilDate();
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
                    if (value.isBoolean())obj2 = new Boolean(value.asBoolean());
                    if (value.isString()) obj2 = value.asString();
                    if (value.isTime()) obj2 = value.asTime();
                    if (value.isTimestamp()) obj2 = value.asTimestamp();
                    if (value.isUtilDate()) obj2 = value.asUtilDate();
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
                    if (value.isBoolean())obj2 = new Boolean(value.asBoolean());
                    if (value.isString()) obj2 = value.asString();
                    if (value.isTime()) obj2 = value.asTime();
                    if (value.isTimestamp()) obj2 = value.asTimestamp();
                    if (value.isUtilDate()) obj2 = value.asUtilDate();
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        obj2 = new Boolean(value.asBoolean());
                    }
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    {
                        obj2 = new Double(value.asDouble());
                    }
                    if (value.isFloat())
                    {
                        obj2 = new Float(value.asFloat());
                    }
                    if (value.isBoolean())
                    {
                        obj2 = new Boolean(value.asBoolean());
                    }
View Full Code Here

Examples of com.workingdogs.village.Value.asFloat()

                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
                    if (value.isBoolean()) obj2 = new Boolean(value.asBoolean());
                    if (value.isString()) obj2 = value.asString();
                    if (value.isTime()) obj2 = value.asTime();
                    if (value.isTimestamp()) obj2 = value.asTimestamp();
                    if (value.isUtilDate()) obj2 = value.asUtilDate();
View Full Code Here

Examples of net.aufdemrand.denizen.objects.Element.asFloat()

                 aH.debugObj("breakblocks", breakblocks) +
                 aH.debugObj("fire", fire)));

        location.getWorld().createExplosion
                    (location.getX(), location.getY(), location.getZ(),
                     power.asFloat(), fire, breakblocks);
    }
}
View Full Code Here

Examples of net.aufdemrand.denizen.objects.Element.asFloat()

                else if (infinite || ticks < maxTicks) {
                    for (dEntity entity : entities) {
                        if (entity.isSpawned() && rotatingEntities.contains(entity.getUUID())) {
                            Rotation.rotate(entity.getBukkitEntity(),
                                    Rotation.normalizeYaw(entity.getLocation().getYaw() + yaw.asFloat()),
                                    entity.getLocation().getPitch() + pitch.asFloat());
                        }
                        else {
                            rotatingEntities.remove(entity.getUUID());
                            unusedEntities.add(entity);
                        }
View Full Code Here

Examples of net.aufdemrand.denizen.objects.Element.asFloat()

            lastEntity.setVelocity(relative);
        }

        if (spread != null) {
            Vector base = lastEntity.getVelocity().clone();
            float sf = spread.asFloat();
            for (dEntity entity: entities) {
                Vector newvel = Velocity.spread(base, (CoreUtilities.getRandom().nextDouble() > 0.5f ? 1: -1) * Math.toRadians(CoreUtilities.getRandom().nextDouble() * sf),
                        (CoreUtilities.getRandom().nextDouble() > 0.5f ? 1: -1) * Math.toRadians(CoreUtilities.getRandom().nextDouble() * sf));
                entity.setVelocity(newvel);
            }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.domainobjects.ScalarValueRepresentation.asFloat()

        assertThat(property.getFormat(), is("decimal"));
        assertThat(property.getXIsisFormat(), is("float"));
        scalarRepr = property.getRepresentation("value").as(ScalarValueRepresentation.class);
        assertThat(scalarRepr.isNumber(), is(true));
        assertThat(scalarRepr.isIntegralNumber(), is(false));
        Float floatValue = scalarRepr.asFloat();
        assertThat(floatValue, is(12345678901234567890.1234567890F));
       
        property = domainObjectRepr.getProperty("doubleProperty");
        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is("decimal"));
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.