Examples of key()


Examples of com.google.gwt.storage.client.Storage.key()

        if (storage == null) {
            return;
        }
        // note: length is live
        for (int i = 0; i < storage.getLength();) {
            String key = storage.key(i);
            if (key.startsWith(STORAGE_PREFIX)) {
                removeState(storage, key.substring(STORAGE_PREFIX.length()));
            } else {
                i++;
            }
View Full Code Here

Examples of com.hannesdorfmann.fragmentargs.annotation.Arg.key()

  }

  private static String getKey(Element element) {
    Arg annotation = element.getAnnotation(Arg.class);
    String field = element.getSimpleName().toString();
    if (!"".equals(annotation.key())) {
      return annotation.key();
    }
    return getVariableName(field);
  }
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalReadable.key()

    ByteBuffer b = ev.value();
    byte[] bytes = new byte[b.remaining()];
    b.get(bytes);
    for (int i=0;i < numCheckpoints;++i)
    {
      _buffer.appendEvent(new DbusEventKey(ev.key()),
                          ev.physicalPartitionId(),
                          ev.logicalPartitionId(),
                          ev.timestampInNanos(),
                          ev.srcId(),
                          ev.schemaId(),
View Full Code Here

Examples of com.opensymphony.xwork2.conversion.annotations.TypeConversion.key()

        for (Method method : clazz.getMethods()) {
            annotations = method.getAnnotations();
            for (Annotation annotation : annotations) {
                if (annotation instanceof TypeConversion) {
                    TypeConversion tc = (TypeConversion) annotation;
                    if (mapping.containsKey(tc.key())) {
                        break;
                    }
                    String key = tc.key();
                    // Default to the property name
                    if (StringUtils.isEmpty(key)) {
View Full Code Here

Examples of com.pccw.hessian.support.cache.CachePolicy.key()

    }
  }
 
  private String getCacheKey(Method method, Object[] args) throws InstantiationException, IllegalAccessException{
    CachePolicy policy=method.getAnnotation(CachePolicy.class);
    return "".equals(policy.key())?policy.keyGenerater().newInstance().generatKey(method, args):policy.key();
  }

}
View Full Code Here

Examples of com.saasovation.common.port.adapter.persistence.leveldb.LevelDBKey.key()

    public Sprint sprintOfId(TenantId aTenantId, SprintId aSprintId) {
        LevelDBKey primaryKey = new LevelDBKey(PRIMARY, aTenantId.id(), aSprintId.id());

        Sprint sprint =
                LevelDBUnitOfWork.readOnly(this.database())
                    .readObject(primaryKey.key().getBytes(), Sprint.class);

        return sprint;
    }

    @Override
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.Property.key()

        when(mockPropertyA.isPresent()).thenReturn(true);
        when(mockPropertyB.isPresent()).thenReturn(true);
        when(mockPropertyA.element()).thenReturn(mockElement);
        when(mockPropertyB.element()).thenReturn(mockElement);
        when(mockPropertyA.key()).thenReturn("k");
        when(mockPropertyB.key()).thenReturn("k");
        when(mockPropertyA.value()).thenReturn("v");
        when(mockPropertyB.value()).thenReturn("v");

        assertTrue(ElementHelper.areEqual(mockPropertyA, mockPropertyB));
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.VertexProperty.key()

            assertEquals("okram", vertex.value("name"));
        });
        VertexProperty vertexProperty = vertex.property("name");
        tryCommit(g, g -> {
            assertTrue(vertexProperty.isPresent());
            assertEquals("name", vertexProperty.key());
            assertEquals("okram", vertexProperty.value());
            validateCounts(g, 1, 0, 1, 0);
        });
        try {
            vertexProperty.property("acl", "private");
View Full Code Here

Examples of com.trolltech.qt.gui.QKeyEvent.key()

  @Override
  public boolean event(QEvent event)
    {
        if (event.type().equals(QEvent.Type.KeyPress)) {
            QKeyEvent ke = (QKeyEvent) event;
            if (ke.key() == Qt.Key.Key_Tab.value()) {
          parent.tabPressed();
          ke.accept();
                return true;
            }
            if (ke.key() == Qt.Key.Key_Backtab.value()) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyValueQualifier.key()

    }
    if (q instanceof EOKeyValueQualifier) {
      EOKeyValueQualifier kvQualifier = (EOKeyValueQualifier) q;
     
      if (kvQualifier.selector().equals(EOKeyValueQualifier.QualifierOperatorEqual)) {
        String key = kvQualifier.key();
        EOAttribute att = entity.attributeNamed(key);
       
        if (att != null) {
          if (q instanceof ERXInQualifier) {
            for (Object v : ((ERXInQualifier) q).values()) {
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.