Examples of peek()


Examples of com.caucho.server.distcache.DistCacheEntry.peek()

  @Override
  public Object peek(Object key)
  {
    DistCacheEntry cacheEntry = _entryCache.get(key);

    return (cacheEntry != null) ? cacheEntry.peek() : null;
  }
 
  /**
   * Returns the hash of the given key
   */
 
View Full Code Here

Examples of com.github.nmorel.gwtjackson.client.stream.JsonReader.peek()

        try {

            if ( ctx.isUnwrapRootValue() ) {

                if ( JsonToken.BEGIN_OBJECT != reader.peek() ) {
                    throw ctx.traceError( "Unwrap root value is enabled but the input is not a JSON Object", reader );
                }
                reader.beginObject();
                if ( JsonToken.END_OBJECT == reader.peek() ) {
                    throw ctx.traceError( "Unwrap root value is enabled but the JSON Object is empty", reader );
View Full Code Here

Examples of com.google.gson.stream.JsonReader.peek()

    JsonReader reader = new JsonReader(in);

    reader.beginObject();

    while (reader.hasNext()) {
      JsonToken tok = reader.peek();
      switch (tok) {
        case NAME:
          String name = reader.nextName();
          if (name.equals(MITREidDataService.MITREID_CONNECT_1_0)) {
            dataService_1_0.importData(reader);
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.BooleanStack.peek()

        BooleanStack stack = (BooleanStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return this.element1 == stack.peek();
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.ByteStack.peek()

        ByteStack stack = (ByteStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return this.element1 == stack.peek();
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.CharStack.peek()

        CharStack stack = (CharStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return this.element1 == stack.peek();
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.DoubleStack.peek()

        DoubleStack stack = (DoubleStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return Double.compare(this.element1, stack.peek()) == 0;
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.FloatStack.peek()

        FloatStack stack = (FloatStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return Float.compare(this.element1, stack.peek()) == 0;
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.IntStack.peek()

        IntStack stack = (IntStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return this.element1 == stack.peek();
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.stack.primitive.LongStack.peek()

        LongStack stack = (LongStack) otherStack;
        if (stack.size() != 1)
        {
            return false;
        }
        return this.element1 == stack.peek();
    }

    @Override
    public int hashCode()
    {
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.