Package com.codecademy.eventhub.base

Examples of com.codecademy.eventhub.base.ByteBufferMap


  public String toString() {
    return String.format("external user id: %s" + getExternalId());
  }

  public static User fromByteBuffer(ByteBuffer byteBuffer) {
    return new User(new ByteBufferMap(byteBuffer.duplicate()));
  }
View Full Code Here


  public ByteBuffer toByteBuffer() {
    return byteBufferMap.toByteBuffer();
  }

  public static Event fromByteBuffer(ByteBuffer byteBuffer) {
    return new Event(new ByteBufferMap(byteBuffer.duplicate()));
  }
View Full Code Here

TOP

Related Classes of com.codecademy.eventhub.base.ByteBufferMap

Copyright © 2018 www.massapicom. 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.