Tabnine Logo
com.eightkdata.mongowp.bson.impl
Code IndexAdd Tabnine to your IDE (free)

How to use com.eightkdata.mongowp.bson.impl

Best Java code snippets using com.eightkdata.mongowp.bson.impl (Showing top 20 results out of 315)

origin: com.8kdata.mongowp.bson/bson-core

public static PrimitiveBsonDouble newInstance(double value) {
 if (value == 0) {
  return ZERO;
 }
 if (value == 1) {
  return ONE;
 }
 return new PrimitiveBsonDouble(value);
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return SimpleBsonNull.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

public static PrimitiveBsonInt64 newInstance(long value) {
 if (value == 0) {
  return ZERO;
 }
 if (value == 1) {
  return ONE;
 }
 return new PrimitiveBsonInt64(value);
}
origin: com.8kdata.mongowp.bson/bson-core

public static final BsonDateTime newDateTime(long millis) {
 return new LongBsonDateTime(millis);
}
origin: com.8kdata.mongowp.bson/bson-core

 public static BsonTimestamp newTimestamp(int secs, int ordinal) {
  return new DefaultBsonTimestamp(secs, ordinal);
 }
}
origin: com.8kdata.mongowp.bson/bson-core

public static final BsonArray newArray(List<BsonValue<?>> list) {
 switch (list.size()) {
  case 0:
   return EMPTY_ARRAY;
  case 1:
   return new SingleValueBsonArray(list.get(0));
  default:
   return new ListBsonArray(list);
 }
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return SimpleBsonMin.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return TrueBsonBoolean.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return SimpleBsonMax.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return SimpleBsonUndefined.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

public static BsonInt32 newInt(int value) {
 return PrimitiveBsonInt32.newInstance(value);
}
origin: com.8kdata.mongowp.bson/bson-core

public static final BsonDateTime newDateTime(Instant instant) {
 return new InstantBsonDateTime(instant);
}
origin: com.8kdata.mongowp.bson/bson-core

@Override
public int getCounter() {
 return bytesAsInt((byte) 0, bytes[9], bytes[10], bytes[11]);
}
origin: com.8kdata.mongowp.bson/bson-core

public boolean containsAll(Iterable<BsonValue<?>> iterable) {
 for (BsonValue<?> bsonValue : iterable) {
  if (!contains(bsonValue)) {
   return false;
  }
 }
 return true;
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return EmptyBsonDocument.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

 private Object readResolve() {
  return EmptyBsonArray.getInstance();
 }
}
origin: com.8kdata.mongowp.bson/bson-core

/**
 * Returns a {@link PrimitiveBsonInt32} instance with the given value.
 */
public static PrimitiveBsonInt32 newInstance(int value) {
 switch (value) {
  case 0:
   return ZERO;
  case 1:
   return ONE;
  case -1:
   return MINUS_ONE;
  default:
   return new PrimitiveBsonInt32(value);
 }
}
origin: com.8kdata.mongowp.bson/bson-core

@Override
public int getMachineIdentifier() {
 return bytesAsInt((byte) 0, bytes[4], bytes[5], bytes[6]);
}
origin: com.8kdata.mongowp.bson/bson-core

@Override
public int getProcessId() {
 return bytesAsInt((byte) 0, (byte) 0, bytes[7], bytes[8]);
}
origin: com.8kdata.mongowp.bson/bson-core

private int getIntTimestamp() {
 return bytesAsInt(bytes[0], bytes[1], bytes[2], bytes[3]);
}
com.eightkdata.mongowp.bson.impl

Most used classes

  • LongBsonDateTime
  • ByteArrayBsonObjectId
  • DefaultBsonTimestamp
  • PrimitiveBsonDouble
  • ByteArrayBsonBinary
  • ListBsonArray,
  • MapBasedBsonDocument,
  • PrimitiveBsonInt32,
  • PrimitiveBsonInt64,
  • SimpleBsonMax,
  • SimpleBsonMin,
  • SimpleBsonNull,
  • SimpleBsonUndefined,
  • StringBsonString,
  • TrueBsonBoolean,
  • DefaultBsonDbPointer,
  • DefaultBsonJavaScript,
  • DefaultBsonJavaScriptWithCode,
  • DefaultBsonRegex
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now