Examples of freeze()


Examples of org.jboss.metatype.plugins.types.MutableCompositeMetaType.freeze()

      TableValue expected = new TableValueSupport(tableType);
      String[] itemNames = DefaultMetaTypeFactory.MAP_ITEM_NAMES;
     
      MutableCompositeMetaType compositeType = new MutableCompositeMetaType(TestSimpleComposite.class.getName(), TestSimpleComposite.class.getName());
      compositeType.addItem("something", "something", SimpleMetaType.STRING);
      compositeType.freeze();

      String[] compositeNames = { "something" };
      CompositeValue compositeValue = new CompositeValueSupport(compositeType, compositeNames, new MetaValue[] { SimpleValueSupport.wrap("Hello") });
     
      MetaValue[] itemValues = new MetaValue[] { compositeValue, SimpleValueSupport.wrap(new Integer(1)) };
View Full Code Here

Examples of org.jquantlib.instruments.Instrument.freeze()

        if (!f.isUp()) {
            fail("Observer was not notified of instrument change");
        }

        f.lower();
        s.freeze();
        s.NPV();
        me2.setValue(2.71);
        if (f.isUp()) {
            fail("Observer was notified of frozen instrument change");
        }
View Full Code Here

Examples of org.jquantlib.instruments.Stock.freeze()

        if (!f.isUp()) {
            fail("Observer was not notified of instrument change");
        }

        f.lower();
        s.freeze();
        s.NPV();
        me2.setValue(2.71);
        if (f.isUp()) {
            fail("Observer was notified of frozen instrument change");
        }
View Full Code Here

Examples of org.jruby.RubyString.freeze()

        ThreadContext context = runtime.getCurrentContext();

        version.freeze(context);
        nkfVersion.freeze(context);
        nkfDate.freeze(context);

        nkfModule.defineAnnotatedMethods(RubyNKF.class);
    }

    @JRubyMethod(name = "guess", required = 1, module = true)
View Full Code Here

Examples of org.modeshape.jcr.cache.ReferrerCounts.MutableReferrerCounts.freeze()

            for (Set<NodeKey> sourceKeys : removedWeak.values()) {
                for (NodeKey key : sourceKeys) {
                    mutable.addWeak(key, -1);
                }
            }
            return mutable.freeze();
        }

        public boolean isEmpty() {
            return addedWeak.isEmpty() && removedWeak.isEmpty() && addedStrong.isEmpty() && removedStrong.isEmpty();
        }
View Full Code Here

Examples of org.modeshape.jcr.cache.change.RecordingChanges.freeze()

            sequencingChanges.nodeSequenced(sequencedNode.key(), sequencedNode.path(), primaryType, mixinTypes, outputNode.key(),
                                            outputNode.path(), work.getOutputPath(), work.getUserId(), work.getSelectedPath(),
                                            sequencerName, sequencedNode.node().isQueryable(outputSession.cache()));
        }
        sequencingChanges.freeze(outputSession.getUserID(), null, context.getValueFactories().getDateFactory().create());
        repository.changeBus().notify(sequencingChanges);
    }

    private void fireSequencingFailureEvent( AbstractJcrNode sequencedNode,
                                             JcrSession inputSession,
View Full Code Here

Examples of org.rascalmpl.interpreter.StackTrace.freeze()

        }
        trace.add(loc, null);

        th.setLocation(loc);
        trace.addAll(eval.getStackTrace());
        th.setTrace(trace.freeze());
        throw th;
      }
      else if (targetException instanceof StaticError) {
        throw (StaticError) targetException;
      }
View Full Code Here

Examples of org.rascalmpl.interpreter.StackTrace.freeze()

        break;
      }
      newTrace.add(robustSourceLocation(elem.getFileName(), 0, 0, elem.getLineNumber(), elem.getLineNumber(), 0, 0), elem.getClassName() + "." + elem.getMethodName());
    }
    newTrace.addAll(rascalTrace);
    return newTrace.freeze();
  }
 
  public static Throw moduleNotFound(IString module, AbstractAST ast, StackTrace trace) {
    return new Throw(VF.constructor(ModuleNotFound, module), ast, trace);
  }
View Full Code Here

Examples of serializers.activemq.protobuf.MediaContentHolder.MediaContent.MediaContentBean.freeze()

            .setSize(Size.SMALL)
            .setTitle("Javaone Keynote")
            .setWidth(0)
            .setHeight(0)
        );
        return content.freeze();
    }

    public String getName() {
        return "activemq protobuf";
    }
View Full Code Here

Examples of simpleserver.Time.freeze()

      } else if (argument.equals("unfreeze")) {
        time.unfreeze();
        tInfo("Time unfrozen");
        return;
      } else if (argument.equals("freeze")) {
        time.freeze();
        tInfo("Time frozen");
        return;
      } else {
        try {
          value = time.parse(argument);
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.