INNER CODE UNIT · Java
isEnabled
michel-kraemer/bson4jackson · src/main/java/de/undercouch/bson4jackson/BsonGenerator.java:214
protected boolean isEnabled(Feature f) {
return (_bsonFeatures & f.getMask()) != 0;
}
/**
* @return true if the generator is currently processing an array
*/
protected boolean isArray() {
return _currentDocument != null && _currentDocument.currentArrayPos >= 0;
}
/**
* Retrieves and then increases the current position in the array
* currently being generated
* @return the position (before it has been increased) or -1 if
* the current document is not an array
*/
protected int getAndIncCurrentArrayPos() {