Tabnine Logo
ListBsonArray.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.eightkdata.mongowp.bson.impl.ListBsonArray.<init> (Showing top 4 results out of 315)

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

private Object writeReplace() throws ObjectStreamException {
 return new ListBsonArray(Lists.newArrayList(this));
}
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-netty

@Override
BsonArray readArray(@Loose @ModifiesIndexes ByteBuf byteBuf) throws NettyBsonReaderException {
 int length = byteBuf.readInt();
 int significantLenght = length - 4 - 1;
 ByteBuf significantSlice = byteBuf.readSlice(significantLenght);
 byte b = byteBuf.readByte();
 assert b == 0x00;
 ArrayList<BsonValue<?>> list = new ArrayList<>();
 while (significantSlice.readableBytes() > 0) {
  list.add(readArrayEntry(significantSlice));
 }
 return new ListBsonArray(list);
}
origin: com.8kdata.mongowp.bson/org-bson-utils

 list.add(translatePrivate(mongoValue));
return new ListBsonArray(list);
com.eightkdata.mongowp.bson.implListBsonArray<init>

Popular methods of ListBsonArray

  • contains

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best IntelliJ plugins
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