signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ActiveMqQueue { /** * Destroy method . */ public void destroy ( ) { } }
try { super . destroy ( ) ; } finally { closeQuietly ( connection ) ; closeQuietly ( messageProducer ) ; closeQuietly ( producerSession ) ; closeQuietly ( messageConsumer ) ; closeQuietly ( consumerSession ) ; if ( connectionFactory != null && myOwnConnectionFactory ) { connectionFactory = null ; } }
public class Iso8601Format { /** * / * [ deutsch ] * < p > Liefert einen { @ code ChronoPrinter } mit dem angegebenen Dezimalstil zur Ausgabe einer Uhrzeit * im < i > basic < / i > - Format & quot ; HHmm [ ss [ , SSSSS ] ] & quot ; . < / p > * < p > Im Interesse einer maximalen Performance wird empfohlen , das Er...
ChronoFormatter . Builder < PlainTime > builder = ChronoFormatter . setUp ( PlainTime . class , Locale . ROOT ) ; addWallTime ( builder , false , decimalStyle , precision ) ; return builder . build ( ) . with ( Leniency . STRICT ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcRepresentationItem ( ) { } }
if ( ifcRepresentationItemEClass == null ) { ifcRepresentationItemEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 568 ) ; } return ifcRepresentationItemEClass ;
public class UserRepository { /** * ' Delete ' the users account such that they can no longer access it , however we do not delete * the record from the db . The name is changed such that the original name has XX = FOO if the * name were FOO originally . If we have to lop off any of the name to get our prefix to fi...
if ( user . isDeleted ( ) ) { return ; } executeUpdate ( new Operation < Object > ( ) { public Object invoke ( Connection conn , DatabaseLiaison liaison ) throws PersistenceException , SQLException { // create our modified fields mask FieldMask mask = _utable . getFieldMask ( ) ; mask . setModified ( "username" ) ; mas...
public class IntervalCollection { /** * / * [ deutsch ] * < p > Kombiniert alle Intervalle zu disjunkten Bl & ouml ; cken , die sich * weder & uuml ; berlappen noch ber & uuml ; hren . < / p > * < p > Alle Intervalle , die sich & uuml ; berlappen oder sich ber & uuml ; hren , werden zu jeweils * einem Block ver...
if ( this . intervals . size ( ) < 2 ) { return this ; } Boundary < T > s ; Boundary < T > e ; boolean calendrical = this . isCalendrical ( ) ; IntervalEdge edge = ( calendrical ? IntervalEdge . CLOSED : IntervalEdge . OPEN ) ; List < ChronoInterval < T > > gaps = this . withGaps ( ) . intervals ; List < ChronoInterval...
public class WindowsHackReader { /** * Reads into a character buffer using the correct encoding . * @ param cbuf character buffer receiving the data . * @ param off starting offset into the buffer . * @ param len number of characters to read . * @ return the number of characters read or - 1 on end of file . */ ...
int i = 0 ; for ( i = 0 ; i < len ; i ++ ) { int ch = is . read ( ) ; if ( ch < 0 ) return i == 0 ? - 1 : i ; switch ( ch ) { case - 1 : return i == 0 ? - 1 : i ; case 130 : // unicode 8218 cbuf [ off + i ] = ',' ; break ; case 131 : // unicode 402 cbuf [ off + i ] = 'f' ; break ; case 132 : // unicode 8222 cbuf [ off ...
public class EmailConverter { /** * Delegates to { @ link # emlToMimeMessage ( String , Session ) } using a dummy { @ link Session } instance and passes the result to { @ link * # mimeMessageToEmail ( MimeMessage ) } ; */ public static EmailPopulatingBuilder emlToEmailBuilder ( @ Nonnull final String eml ) { } }
final MimeMessage mimeMessage = emlToMimeMessage ( checkNonEmptyArgument ( eml , "eml" ) , createDummySession ( ) ) ; return mimeMessageToEmailBuilder ( mimeMessage ) ;
public class WorkflowTemplateServiceClient { /** * Creates new workflow template . * < p > Sample code : * < pre > < code > * try ( WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient . create ( ) ) { * RegionName parent = RegionName . of ( " [ PROJECT ] " , " [ REGION ] ...
CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . setTemplate ( template ) . build ( ) ; return createWorkflowTemplate ( request ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcStructuralPlanarAction ( ) { } }
if ( ifcStructuralPlanarActionEClass == null ) { ifcStructuralPlanarActionEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 654 ) ; } return ifcStructuralPlanarActionEClass ;
public class ValueTransformer { /** * / * ( non - Javadoc ) * @ see com . oath . cyclops . types . Zippable # zip ( java . lang . Iterable , java . util . function . BiFunction ) */ public < T2 , R > ValueTransformer < W , R > zip ( Iterable < ? extends T2 > iterable , BiFunction < ? super T , ? super T2 , ? extends ...
return this . unitAnyM ( this . transformerStream ( ) . map ( v -> v . zip ( iterable , fn ) ) ) ;
public class CollectionUtils { /** * create a collection set , with initial values . * @ param < T > the generic type * @ param itemType the item type * @ param objects the objects * @ return the sets the */ @ SuppressWarnings ( "unchecked" ) public static < T > Set < T > asSet ( Class < T > itemType , T ... ob...
LinkedHashSet < T > result = new LinkedHashSet < T > ( ) ; for ( T item : objects ) { result . add ( item ) ; } return result ;
public class TaskManagerServices { /** * Shuts the { @ link TaskExecutor } services down . */ public void shutDown ( ) throws FlinkException { } }
Exception exception = null ; try { taskManagerStateStore . shutdown ( ) ; } catch ( Exception e ) { exception = e ; } try { memoryManager . shutdown ( ) ; } catch ( Exception e ) { exception = ExceptionUtils . firstOrSuppressed ( e , exception ) ; } try { ioManager . shutdown ( ) ; } catch ( Exception e ) { exception =...
public class MultiPartParser { private void parseDelimiter ( ByteBuffer buffer ) { } }
while ( __delimiterStates . contains ( _state ) && hasNextByte ( buffer ) ) { HttpTokens . Token t = next ( buffer ) ; if ( t == null ) return ; if ( t . getType ( ) == HttpTokens . Type . LF ) { setState ( State . BODY_PART ) ; if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "startPart {}" , this ) ; _handler . startPar...
public class DirectoryScanner { /** * Main program loop for DirectoryScanner * Runs " reconcile ( ) " periodically under the masterThread . */ @ Override public void run ( ) { } }
try { InjectionHandler . processEvent ( InjectionEvent . DIRECTORY_SCANNER_NOT_STARTED ) ; if ( ! shouldRun ) { // shutdown has been activated LOG . warn ( "this cycle terminating immediately because 'shouldRun' has been deactivated" ) ; return ; } Integer [ ] namespaceIds = datanode . getAllNamespaces ( ) ; for ( Inte...
public class AbstractParser { /** * Return a json object from the provided array . Return an empty object if * there is any problems fetching the named entity data . * @ param jsonArray array of data * @ param index of the object to fetch * @ return json object from the provided array */ protected JSONObject ge...
JSONObject object = new JSONObject ( ) ; try { object = ( JSONObject ) jsonArray . get ( index ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } return object ;
public class DetectCircleGrid { /** * Number of CCW rotations to put selected corner into the canonical location . Only works * when there are 4 possible solutions * @ param g The grid * @ return number of rotations */ static int closestCorner4 ( Grid g ) { } }
double bestDistance = g . get ( 0 , 0 ) . center . normSq ( ) ; int bestIdx = 0 ; double d = g . get ( 0 , g . columns - 1 ) . center . normSq ( ) ; if ( d < bestDistance ) { bestDistance = d ; bestIdx = 3 ; } d = g . get ( g . rows - 1 , g . columns - 1 ) . center . normSq ( ) ; if ( d < bestDistance ) { bestDistance ...
public class XMLStreamEvents { /** * Shortcut to get the value of the given attribute name . */ public UnprotectedStringBuffer getAttributeValueWithNamespaceURI ( CharSequence uri , CharSequence name ) { } }
for ( Attribute attr : event . attributes ) if ( attr . localName . equals ( name ) && getNamespaceURI ( attr . namespacePrefix ) . equals ( uri ) ) return attr . value ; return null ;
public class ComparableTuple { /** * from interface Comparable */ public int compareTo ( ComparableTuple < L , R > other ) { } }
int rv = ObjectUtil . compareTo ( left , other . left ) ; return ( rv != 0 ) ? rv : ObjectUtil . compareTo ( right , other . right ) ;
public class MessageDigest { /** * Update the digest using the specified ByteBuffer . The digest is * updated using the { @ code input . remaining ( ) } bytes starting * at { @ code input . position ( ) } . * Upon return , the buffer ' s position will be equal to its limit ; * its limit will not have changed . ...
if ( input == null ) { throw new NullPointerException ( ) ; } engineUpdate ( input ) ; state = IN_PROGRESS ;
public class MDLV2000Writer { /** * Formats a String to fit into the connectiontable . * @ param s The String to be formated * @ param le The length of the String * @ return The String to be written in the connectiontable */ protected static String formatMDLString ( String s , int le ) { } }
s = s . trim ( ) ; if ( s . length ( ) > le ) return s . substring ( 0 , le ) ; int l ; l = le - s . length ( ) ; for ( int f = 0 ; f < l ; f ++ ) s += " " ; return s ;
public class P3DatabaseReader { /** * Read task relationships . */ private void readRelationships ( ) { } }
for ( MapRow row : m_tables . get ( "REL" ) ) { Task predecessor = m_activityMap . get ( row . getString ( "PREDECESSOR_ACTIVITY_ID" ) ) ; Task successor = m_activityMap . get ( row . getString ( "SUCCESSOR_ACTIVITY_ID" ) ) ; if ( predecessor != null && successor != null ) { Duration lag = row . getDuration ( "LAG_VALU...
public class StreamEx { /** * Returns a sequential ordered { @ code StreamEx } containing the results of * applying the given mapper function to the all possible pairs of elements * taken from the provided array . * The indices of two array elements supplied to the mapper function are * always ordered : first e...
return ofPairs ( Arrays . asList ( array ) , mapper ) ;
public class ClassInfo { /** * Return public metheds according to given name */ public final List < MethodInfo > getMethods ( String name ) { } }
List < MethodInfo > namedMethod = methods . get ( name ) ; if ( null == namedMethod ) return Collections . emptyList ( ) ; else return namedMethod ;
public class StrSubstitutor { /** * Sets the variable prefix to use . * The variable prefix is the character or characters that identify the * start of a variable . This method allows a string prefix to be easily set . * @ param prefix the prefix for variables , not null * @ return this , to enable chaining *...
if ( prefix == null ) { throw new IllegalArgumentException ( "Variable prefix must not be null!" ) ; } return setVariablePrefixMatcher ( StrMatcher . stringMatcher ( prefix ) ) ;
public class JaxWsUtils { /** * get the targetNamespace from implementation bean . * if can get the targetNamespace attribute from annotation then return it , * otherwise return the package name as default value . * Both webService and webServiceprovider has the same logic . * @ param classInfo * @ return */ ...
String defaultValue = getNamespace ( classInfo , null ) ; if ( StringUtils . isEmpty ( defaultValue ) ) { defaultValue = JaxWsConstants . UNKNOWN_NAMESPACE ; } AnnotationInfo annotationInfo = getAnnotationInfoFromClass ( classInfo , JaxWsConstants . TARGETNAMESPACE_ATTRIBUTE ) ; if ( annotationInfo == null ) { return "...
public class JcrTools { /** * Register new mixin type if does not exists on workspace * @ param session the JCR session * @ param mixin the mixin name to register * @ throws RepositoryException */ public static void registerMixinType ( Session session , String mixin ) throws RepositoryException { } }
NodeTypeManager nodeTypeManager = session . getWorkspace ( ) . getNodeTypeManager ( ) ; if ( ! nodeTypeManager . hasNodeType ( mixin ) ) { NodeTypeTemplate nodeTypeTemplate = nodeTypeManager . createNodeTypeTemplate ( ) ; nodeTypeTemplate . setMixin ( true ) ; nodeTypeTemplate . setName ( mixin ) ; NodeTypeDefinition [...
public class AmazonEC2Client { /** * Associates a CIDR block with your VPC . You can associate a secondary IPv4 CIDR block , or you can associate an * Amazon - provided IPv6 CIDR block . The IPv6 CIDR block size is fixed at / 56. * For more information about associating CIDR blocks with your VPC and applicable rest...
request = beforeClientExecution ( request ) ; return executeAssociateVpcCidrBlock ( request ) ;
public class Cursor { /** * Closes underlying result set and , optionally , the whole connection . * @ param closeConnection Close underlying connection also . Be aware of this if * connection is used somewhere else . * @ throws SQLException */ public void close ( boolean closeConnection ) throws SQLException { }...
if ( closeConnection ) { resultSet . getStatement ( ) . getConnection ( ) . close ( ) ; } else { resultSet . close ( ) ; } finished = true ;
public class NoopTaskProcessorFactory { /** * ( non - Javadoc ) * @ see * org . duracloud . mill . workman . TaskProcessorFactoryBase # isSupported ( org . duracloud * . mill . domain . Task ) */ @ Override public boolean isSupported ( Task task ) { } }
return task . getType ( ) . equals ( Task . Type . NOOP ) ;
public class DistanceMoment { /** * Evaluate the 12 descriptors used to characterize the 3D shape of a molecule . * @ param atomContainer The molecule to consider , should have 3D coordinates * @ return A 12 element array containing the descriptors . * @ throws CDKException if there are no 3D coordinates */ publi...
// lets check if we have 3D coordinates Iterator < IAtom > atoms ; int natom = atomContainer . getAtomCount ( ) ; Point3d ctd = getGeometricCenter ( atomContainer ) ; Point3d cst = new Point3d ( ) ; Point3d fct = new Point3d ( ) ; Point3d ftf = new Point3d ( ) ; double [ ] distCtd = new double [ natom ] ; double [ ] di...
public class Get { /** * Retrieves a specific row from the element . If the element isn ' t present * or a table , or doesn ' t have that many rows a null value will be returned . * @ param rowNum - the row number of the table to obtain - note , row numbering * starts at 0 * @ return List : a list of the table ...
Element rows = tableRows ( ) ; if ( rows == null ) { return null ; } if ( numOfTableRows ( ) < rowNum ) { return null ; } return rows . get ( rowNum ) ;
public class Convert { /** * Register void . * @ param clazz the clazz * @ param converter the converter */ public static void register ( Class < ? > clazz , Function < Object , ? > converter ) { } }
if ( clazz == null || converter == null ) { log . warn ( "Trying to register either a null class ({0}) or a null converter ({1}). Ignoring!" , clazz , converter ) ; return ; } converters . put ( clazz , converter ) ;
public class CmsVfsService { /** * Creates a bean representing a historical resource version . < p > * @ param cms the current CMS context * @ param historyRes the historical resource * @ param offline true if this resource was read from the offline project * @ param maxVersion the largest version number found ...
CmsHistoryResourceBean result = new CmsHistoryResourceBean ( ) ; Locale locale = OpenCms . getWorkplaceManager ( ) . getWorkplaceLocale ( cms ) ; result . setStructureId ( historyRes . getStructureId ( ) ) ; result . setRootPath ( historyRes . getRootPath ( ) ) ; result . setDateLastModified ( formatDate ( historyRes ....
public class Graphics { /** * Sets the background to a RGB or HSB and alpha value . * @ param color * The RGB or HSB value of the background . */ public void setBackgroud ( Color color ) { } }
gl . glClearColor ( ( float ) color . getRed ( ) , ( float ) color . getGreen ( ) , ( float ) color . getBlue ( ) , ( float ) ( color . getAlpha ( ) * getAlpha ( ) ) ) ;
public class ValueNode { public static ValueNode toValueNode ( Object o ) { } }
if ( o == null ) return NULL_NODE ; if ( o instanceof ValueNode ) return ( ValueNode ) o ; if ( o instanceof Class ) return createClassNode ( ( Class ) o ) ; else if ( isPath ( o ) ) return new PathNode ( o . toString ( ) , false , false ) ; else if ( isJson ( o ) ) return createJsonNode ( o . toString ( ) ) ; else if ...
public class BoundedBuffer { /** * @ awisniew - ADDED * ( non - Javadoc ) * @ see java . util . concurrent . BlockingQueue # remove ( java . lang . Object ) */ @ Override public boolean remove ( Object o ) { } }
if ( o == null ) { return false ; } if ( size ( ) == 0 ) { return false ; } synchronized ( this ) { // First check the expedited buffer synchronized ( lock ) { // Check if we wrap around the end of the array before iterating if ( expeditedPutIndex > expeditedTakeIndex ) { for ( int i = expeditedTakeIndex ; i <= expedit...
public class MediaBatchOperations { /** * Parses the batch result . * @ param response * the response * @ param mediaBatchOperations * the media batch operations * @ throws IOException * Signals that an I / O exception has occurred . * @ throws ServiceException * the service exception */ public void par...
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; InputStream inputStream = response . getEntityInputStream ( ) ; ReaderWriter . writeTo ( inputStream , byteArrayOutputStream ) ; response . setEntityInputStream ( new ByteArrayInputStream ( byteArrayOutputStream . toByteArray ( ) ) ) ; JobInf...
public class Scope { /** * Returns a copy of the child list , with each child cast to an * { @ link AstNode } . * @ throws ClassCastException if any non - { @ code AstNode } objects are * in the child list , e . g . if this method is called after the code * generator begins the tree transformation . */ public L...
List < AstNode > stmts = new ArrayList < AstNode > ( ) ; Node n = getFirstChild ( ) ; while ( n != null ) { stmts . add ( ( AstNode ) n ) ; n = n . getNext ( ) ; } return stmts ;
public class AnalyticsContext { /** * Fill this instance with application info from the provided { @ link Context } . No need to expose a * getter for this for bundled integrations ( they ' ll automatically fill what they need * themselves ) . */ void putScreen ( Context context ) { } }
Map < String , Object > screen = createMap ( ) ; WindowManager manager = getSystemService ( context , Context . WINDOW_SERVICE ) ; Display display = manager . getDefaultDisplay ( ) ; DisplayMetrics displayMetrics = new DisplayMetrics ( ) ; display . getMetrics ( displayMetrics ) ; screen . put ( SCREEN_DENSITY_KEY , di...
public class BaseKvDao { /** * { @ inheritDoc } */ @ Override public byte [ ] get ( String spaceId , String key ) throws IOException { } }
String cacheKey = calcCacheKey ( spaceId , key ) ; byte [ ] data = getFromCache ( getCacheName ( ) , cacheKey , byte [ ] . class ) ; if ( data == null ) { data = kvStorage . get ( spaceId , key ) ; putToCache ( getCacheName ( ) , cacheKey , data ) ; } return data ;
public class druidGLexer { /** * $ ANTLR start " DELIMITER " */ public final void mDELIMITER ( ) throws RecognitionException { } }
try { int _type = DELIMITER ; int _channel = DEFAULT_TOKEN_CHANNEL ; // druidG . g : 590:17 : ( ( ' DELIMITER ' | ' delimiter ' ) ) // druidG . g : 590:18 : ( ' DELIMITER ' | ' delimiter ' ) { // druidG . g : 590:18 : ( ' DELIMITER ' | ' delimiter ' ) int alt7 = 2 ; int LA7_0 = input . LA ( 1 ) ; if ( ( LA7_0 == 'D' ) ...
public class ModifySnapshotAttributeRequest { /** * The group to modify for the snapshot . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setGroupNames ( java . util . Collection ) } or { @ link # withGroupNames ( java . util . Collection ) } if you want to ...
if ( this . groupNames == null ) { setGroupNames ( new com . amazonaws . internal . SdkInternalList < String > ( groupNames . length ) ) ; } for ( String ele : groupNames ) { this . groupNames . add ( ele ) ; } return this ;
public class ClassReader { /** * Parses the header of a type annotation to extract its target _ type and * target _ path ( the result is stored in the given context ) , and returns the * start offset of the rest of the type _ annotation structure ( i . e . the * offset to the type _ index field , which is followe...
int target = readInt ( u ) ; switch ( target >>> 24 ) { case 0x00 : // CLASS _ TYPE _ PARAMETER case 0x01 : // METHOD _ TYPE _ PARAMETER case 0x16 : // METHOD _ FORMAL _ PARAMETER target &= 0xFFFF0000 ; u += 2 ; break ; case 0x13 : // FIELD case 0x14 : // METHOD _ RETURN case 0x15 : // METHOD _ RECEIVER target &= 0xFF0...
public class BitUtils { /** * Method to get The next bytes with the specified size * @ param pSize * the size in bit to read * @ param pShift * boolean to indicate if the data read will be shift to the * left . < br > * < ul > * < li > if true : ( Ex 10110000b if we start read 2 bit at index 2 * the ret...
byte [ ] tab = new byte [ ( int ) Math . ceil ( pSize / BYTE_SIZE_F ) ] ; if ( currentBitIndex % BYTE_SIZE != 0 ) { int index = 0 ; int max = currentBitIndex + pSize ; while ( currentBitIndex < max ) { int mod = currentBitIndex % BYTE_SIZE ; int modTab = index % BYTE_SIZE ; int length = Math . min ( max - currentBitInd...
public class LFltSupplierBuilder { /** * Builds the functional interface implementation and if previously provided calls the consumer . */ @ Nonnull public final LFltSupplier build ( ) { } }
final LFltSupplier eventuallyFinal = this . eventually ; LFltSupplier retval ; final Case < LBoolSupplier , LFltSupplier > [ ] casesArray = cases . toArray ( new Case [ cases . size ( ) ] ) ; retval = LFltSupplier . fltSup ( ( ) -> { try { for ( Case < LBoolSupplier , LFltSupplier > aCase : casesArray ) { if ( aCase . ...
public class SqlTableContext { /** * / * ( non - Javadoc ) * @ see org . parosproxy . paros . db . paros . TableContext # deleteAllDataForContext ( int ) */ @ Override public synchronized void deleteAllDataForContext ( int contextId ) throws DatabaseException { } }
SqlPreparedStatementWrapper psDeleteAllDataForContext = null ; try { psDeleteAllDataForContext = DbSQL . getSingleton ( ) . getPreparedStatement ( "context.ps.deletealldataforcontext" ) ; psDeleteAllDataForContext . getPs ( ) . setInt ( 1 , contextId ) ; psDeleteAllDataForContext . getPs ( ) . executeUpdate ( ) ; } cat...
public class DurationUtility { /** * Retrieve an Duration instance . Use shared objects to * represent common values for memory efficiency . * @ param dur duration formatted as a string * @ param format number format * @ param locale target locale * @ return Duration instance * @ throws MPXJException */ pub...
try { int lastIndex = dur . length ( ) - 1 ; int index = lastIndex ; double duration ; TimeUnit units ; while ( ( index > 0 ) && ( Character . isDigit ( dur . charAt ( index ) ) == false ) ) { -- index ; } // If we have no units suffix , assume days to allow for MPX3 if ( index == lastIndex ) { duration = format . pars...
public class GetIntegrationResponsesRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetIntegrationResponsesRequest getIntegrationResponsesRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getIntegrationResponsesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getIntegrationResponsesRequest . getApiId ( ) , APIID_BINDING ) ; protocolMarshaller . marshall ( getIntegrationResponsesRequest . getIntegrationId ( ) , ...
public class ChunkedInputStream { /** * Read the next chunk . * @ throws IOException in case of an I / O error */ private void nextChunk ( ) throws IOException { } }
if ( state == CHUNK_INVALID ) { throw new MalformedChunkCodingException ( "Corrupt data stream" ) ; } try { chunkSize = getChunkSize ( ) ; if ( chunkSize < 0L ) { throw new MalformedChunkCodingException ( "Negative chunk size" ) ; } state = CHUNK_DATA ; pos = 0L ; if ( chunkSize == 0L ) { eof = true ; parseTrailerHeade...
public class CopyConditions { /** * Set matching ETag condition , copy object which matches * the following ETag . * @ throws InvalidArgumentException * When etag is null */ public void setMatchETag ( String etag ) throws InvalidArgumentException { } }
if ( etag == null ) { throw new InvalidArgumentException ( "ETag cannot be empty" ) ; } copyConditions . put ( "x-amz-copy-source-if-match" , etag ) ;
public class DefaultConfiguration { /** * { @ inheritDoc } */ @ Override protected void configure ( ) { } }
// Primitive mappers primitiveType ( boolean . class ) . serializer ( BooleanJsonSerializer . class ) . deserializer ( BooleanJsonDeserializer . class ) ; primitiveType ( char . class ) . serializer ( CharacterJsonSerializer . class ) . deserializer ( CharacterJsonDeserializer . class ) ; primitiveType ( byte . class )...
public class SQLExpressions { /** * CORR returns the coefficient of correlation of a set of number pairs . * @ param expr1 first arg * @ param expr2 second arg * @ return corr ( expr1 , expr2) */ public static WindowOver < Double > covarPop ( Expression < ? extends Number > expr1 , Expression < ? extends Number >...
return new WindowOver < Double > ( Double . class , SQLOps . COVARPOP , expr1 , expr2 ) ;
public class ManagedProcessBuilder { /** * Adds a single argument to the command , composed of two parts and a given separator . * The two parts are independently escaped ( see above ) , and then concatenated using the separator . */ protected ManagedProcessBuilder addArgument ( String argPart1 , String separator , S...
// @ see MariaDB4j Issue # 30 why ' quoting ' ( https : / / github . com / vorburger / MariaDB4j / issues / 30) StringBuilder sb = new StringBuilder ( ) ; sb . append ( StringUtils . quoteArgument ( argPart1 ) ) ; sb . append ( separator ) ; sb . append ( StringUtils . quoteArgument ( argPart2 ) ) ; // @ see https : / ...
public class MithraManager { /** * This method will load the cache of the object already initialized . A Collection is used * to keep track of the objects to load . * @ param portals list of portals to load caches for * @ param threads number of parallel threads to load * @ throws MithraBusinessException if som...
this . configManager . loadMithraCache ( portals , threads ) ;
public class PasswordHash { /** * Validates a password using a hash . * @ param password * the password to check * @ param correctHash * the hash of the valid password * @ return true if the password is correct , false if not * @ throws NoSuchAlgorithmException if jdk does not support the algorithm * @ th...
return validatePassword ( password . toCharArray ( ) , correctHash ) ;
public class HtmlEscape { /** * Perform an HTML5 level 2 ( result is ASCII ) < strong > escape < / strong > operation on a < tt > String < / tt > input . * < em > Level 2 < / em > means this method will escape : * < ul > * < li > The five markup - significant characters : < tt > & lt ; < / tt > , < tt > & gt ; < ...
return escapeHtml ( text , HtmlEscapeType . HTML5_NAMED_REFERENCES_DEFAULT_TO_DECIMAL , HtmlEscapeLevel . LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_SIGNIFICANT ) ;
public class TypeFactory { /** * org . glassfish . jersey . server . spi . internal . ValueFactoryProvider */ @ Override public Factory < ? > getValueFactory ( Parameter parameter ) { } }
if ( type . equals ( parameter . getRawType ( ) ) && parameter . isAnnotationPresent ( Auth . class ) ) { return this ; } return null ;
public class InternalCompilerTools { /** * Compiles the names files . */ private void executeInt ( String [ ] path , LineMap lineMap ) throws JavaCompileException , IOException { } }
MemoryStream tempStream = new MemoryStream ( ) ; WriteStreamOld error = new WriteStreamOld ( tempStream ) ; try { // String parent = javaPath . getParent ( ) . getNativePath ( ) ; ArrayList < String > argList = new ArrayList < String > ( ) ; argList . add ( "-d" ) ; argList . add ( _compiler . getClassDirName ( ) ) ; i...
public class DisplaySingle { /** * Enables / disables the glowing of the glow indicator * @ param GLOWING */ public void setGlowing ( final boolean GLOWING ) { } }
glowing = GLOWING ; init ( getInnerBounds ( ) . width , getInnerBounds ( ) . height ) ; repaint ( ) ;
public class SAML2AuthnResponseValidator { /** * Validate Bearer subject confirmation data * - notBefore * - NotOnOrAfter * - recipient * @ param data the data * @ param context the context * @ return true if all Bearer subject checks are passing */ protected final boolean isValidBearerSubjectConfirmationDa...
if ( data == null ) { logger . debug ( "SubjectConfirmationData cannot be null for Bearer confirmation" ) ; return false ; } // TODO Validate inResponseTo if ( data . getNotBefore ( ) != null ) { logger . debug ( "SubjectConfirmationData notBefore must be null for Bearer confirmation" ) ; return false ; } if ( data . g...
public class TOTPValidator { /** * Returns { @ code true } if the specified TOTP { @ code value } matches the * value of the TOTP generated at validation , otherwise { @ code false } . The * current system time ( current time in milliseconds since the UNIX epoch ) * is used as the validation reference time . * ...
return isValid ( key , timeStep , digits , hmacShaAlgorithm , value , System . currentTimeMillis ( ) ) ;
public class TcpServer { /** * Setups a callback called when { @ link io . netty . channel . ServerChannel } is * bound . * @ param doOnBound a consumer observing server started event * @ return a new { @ link TcpServer } */ public final TcpServer doOnBound ( Consumer < ? super DisposableServer > doOnBound ) { } ...
Objects . requireNonNull ( doOnBound , "doOnBound" ) ; return new TcpServerDoOn ( this , null , doOnBound , null ) ;
public class SpringIOUtils { /** * Copy the contents of the given String to the given output Writer . * Closes the write when done . * @ param in the String to copy from * @ param out the Writer to copy to * @ throws IOException in case of I / O errors */ public static void copy ( String in , Writer out ) throw...
assert in != null : "No input String specified" ; assert out != null : "No output Writer specified" ; try { out . write ( in ) ; } finally { try { out . close ( ) ; } catch ( IOException ex ) { } }
public class DiffToolLogMessages { /** * Logs the shutdown of the logger . * @ param logger * reference to the logger * @ param endTime * time since start */ public static void logShutdown ( final Logger logger , final long endTime ) { } }
logger . logMessage ( Level . INFO , "DiffTool initiates SHUTDOWN\t" + Time . toClock ( endTime ) ) ;
public class GenbankWriterHelper { /** * Write a collection of NucleotideSequences to a file * @ param outputStream * @ param dnaSequences * @ param seqType * @ throws Exception */ public static void writeNucleotideSequence ( OutputStream outputStream , Collection < DNASequence > dnaSequences , String seqType )...
GenericGenbankHeaderFormat < DNASequence , NucleotideCompound > genericGenbankHeaderFormat = new GenericGenbankHeaderFormat < DNASequence , NucleotideCompound > ( seqType ) ; // genericGenbankHeaderFormat . setLineSeparator ( lineSep ) ; GenbankWriter < DNASequence , NucleotideCompound > genbankWriter = new GenbankWrit...
public class TransformerIdentityImpl { /** * Get a parameter that was explicitly set with setParameter * or setParameters . * < p > This method does not return a default parameter value , which * cannot be determined until the node context is evaluated during * the transformation process . * @ param name Name...
if ( null == m_params ) return null ; return m_params . get ( name ) ;
public class NCBIQBlastService { /** * A simple method to check the availability of the QBlast service . Sends { @ code Info } command to QBlast * @ return QBlast info output concatenated to String * @ throws Exception if unable to connect to the NCBI QBlast service */ public String getRemoteBlastInfo ( ) throws Ex...
OutputStreamWriter writer = null ; BufferedReader reader = null ; try { URLConnection serviceConnection = setQBlastServiceProperties ( serviceUrl . openConnection ( ) ) ; writer = new OutputStreamWriter ( serviceConnection . getOutputStream ( ) ) ; writer . write ( "CMD=Info" ) ; writer . flush ( ) ; reader = new Buffe...
public class Pattern { /** * A pattern which matches < code > pattern < / code > as many times as possible * but at least < code > min < / code > times and at most < code > max < / code > times . * @ param pattern * @ param min * @ param max * @ return */ public static Pattern repeat ( Pattern pattern , int m...
if ( pattern == null ) { throw new IllegalArgumentException ( "Pattern can not be null" ) ; } return new RepeatPattern ( pattern , min , max ) ;
public class VisualizeFiducial { /** * Renders a translucent chessboard pattern * @ param g2 Graphics object it ' s drawn in * @ param fiducialToPixel Coverts a coordinate from fiducial into pixel * @ param numRows Number of rows in the calibration grid * @ param numCols Number of columns in the calibration gri...
Point3D_F64 fidPt = new Point3D_F64 ( ) ; Point2D_F64 pixel0 = new Point2D_F64 ( ) ; Point2D_F64 pixel1 = new Point2D_F64 ( ) ; Point2D_F64 pixel2 = new Point2D_F64 ( ) ; Point2D_F64 pixel3 = new Point2D_F64 ( ) ; Line2D . Double l = new Line2D . Double ( ) ; int polyX [ ] = new int [ 4 ] ; int polyY [ ] = new int [ 4 ...
public class ClientPrepareResult { /** * Separate query in a String list and set flag isQueryMultipleRewritable . The resulting string * list is separed by ? that are not in comments . isQueryMultipleRewritable flag is set if query * can be rewrite in one query ( all case but if using " - - comment " ) . example fo...
try { boolean reWritablePrepare = false ; boolean multipleQueriesPrepare = true ; List < byte [ ] > partList = new ArrayList < > ( ) ; LexState state = LexState . Normal ; char lastChar = '\0' ; boolean endingSemicolon = false ; boolean singleQuotes = false ; int lastParameterPosition = 0 ; char [ ] query = queryString...
public class ListToMapConverter { /** * Converts the passed list of inners to unmodifiable map of impls . * @ param innerList list of the inners . * @ return map of the impls */ public Map < String , ImplT > convertToUnmodifiableMap ( List < InnerT > innerList ) { } }
Map < String , ImplT > result = new HashMap < > ( ) ; for ( InnerT inner : innerList ) { result . put ( name ( inner ) , impl ( inner ) ) ; } return Collections . unmodifiableMap ( result ) ;
public class SubsystemSuspensionLevels { /** * Retrieves the SubsystemSuspensionLevels object for the given subsystem . * @ param em The EntityManager to use . * @ param subSystem The subsystem for which to retrieve suspension level . * @ return The SubsystemSuspensionLevels object for the given subsystem . Throw...
SystemAssert . requireArgument ( em != null , "Entity manager can not be null." ) ; SystemAssert . requireArgument ( subSystem != null , "Subsystem cannot be null." ) ; TypedQuery < SubsystemSuspensionLevels > query = em . createNamedQuery ( "SubsystemSuspensionLevels.findBySubsystem" , SubsystemSuspensionLevels . clas...
public class InternalXbaseWithAnnotationsParser { /** * InternalXbaseWithAnnotations . g : 4233:1 : ruleXBlockExpression returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' { ' ( ( ( lv _ expressions _ 2_0 = ruleXExpressionOrVarDeclaration ) ) ( otherlv _ 3 = ' ; ' ) ? ) * otherlv _ 4 = ' } ' ) ; */ public final...
EObject current = null ; Token otherlv_1 = null ; Token otherlv_3 = null ; Token otherlv_4 = null ; EObject lv_expressions_2_0 = null ; enterRule ( ) ; try { // InternalXbaseWithAnnotations . g : 4239:2 : ( ( ( ) otherlv _ 1 = ' { ' ( ( ( lv _ expressions _ 2_0 = ruleXExpressionOrVarDeclaration ) ) ( otherlv _ 3 = ' ; ...
public class RandomLong { /** * Updates ( drifts ) a long value within specified range defined * @ param value a long value to drift . * @ param range ( optional ) a range . Default : 10 % of the value * @ return updated random long value . */ public static long updateLong ( long value , long range ) { } }
range = range == 0 ? ( long ) ( 0.1 * value ) : range ; long minValue = value - range ; long maxValue = value + range ; return nextLong ( minValue , maxValue ) ;
public class SnapshotsInner { /** * Updates ( patches ) a snapshot . * @ param resourceGroupName The name of the resource group . * @ param snapshotName The name of the snapshot that is being created . The name can ' t be changed after the snapshot is created . Supported characters for the name are a - z , A - Z , ...
return ServiceFuture . fromResponse ( updateWithServiceResponseAsync ( resourceGroupName , snapshotName , snapshot ) , serviceCallback ) ;
public class VMInfo { /** * Creates a dead VMInfo , representing a jvm in a given state which cannot * be attached or other monitoring issues occurred . */ public static VMInfo createDeadVM ( String pid , VMInfoState state ) { } }
VMInfo vmInfo = new VMInfo ( ) ; vmInfo . state = state ; vmInfo . pid = pid ; return vmInfo ;
public class ShadowClassLoader { /** * Return a { @ link Set } of members in the Jar identified by { @ code absolutePathToJar } . * @ param absolutePathToJar Cache key * @ return a Set with the Jar member - names */ private Set < String > getJarMemberSet ( String absolutePathToJar ) { } }
/* * Note : * Our implementation returns a HashSet . initialCapacity and loadFactor are carefully tweaked for speed and RAM optimization purposes . * Benchmark : * The HashSet implementation is about 10 % slower to build ( only happens once ) than the ArrayList . * The HashSet with shiftBits = 1 was about 33 ti...
public class ArrayUtil { /** * convert a primitive array ( value type ) to Object Array ( reference type ) . * @ param primArr value type Array * @ return reference type Array */ public static Byte [ ] toReferenceType ( byte [ ] primArr ) { } }
Byte [ ] refArr = new Byte [ primArr . length ] ; for ( int i = 0 ; i < primArr . length ; i ++ ) refArr [ i ] = new Byte ( primArr [ i ] ) ; return refArr ;
public class KeyVaultClientCustomImpl { /** * List the versions of a certificate . * @ param vaultBaseUrl * The vault name , e . g . https : / / myvault . vault . azure . net * @ param certificateName * The name of the certificate * @ param maxresults * Maximum number of results to return in a page . If not...
return getCertificateVersions ( vaultBaseUrl , certificateName , maxresults ) ;
public class Properties { /** * Sets a dynamic property value on an object . */ public static void setObjectDynamicProperty ( Object object , String propertyName , Object value ) { } }
propertyValues . setObjectDynamicProperty ( object , propertyName , value ) ;
public class OpenEntityManagerAspect { /** * Obtain the transactional EntityManager for this accessor ' s EntityManagerFactory , if any . * @ return the transactional EntityManager , or < code > null < / code > if none * @ throws IllegalStateException if this accessor is not configured with an EntityManagerFactory ...
Assert . state ( emf != null , "No EntityManagerFactory specified" ) ; return EntityManagerFactoryUtils . getTransactionalEntityManager ( emf ) ;
public class SqlUtils { /** * 字符串取值增加单引号 、 日期格式化 * 该方法只在内部使用 , 它偷偷将map内容给改变了 , 可能会给其他引用map的程序造成麻烦 , 请使用SqlUtils . formatMap ( map ) 替代 */ private static void forSpecialValue ( Map < String , Object > conditionMap ) { } }
conditionMap . keySet ( ) . forEach ( key -> { Object value = conditionMap . get ( key ) ; if ( value instanceof String ) { conditionMap . put ( key , "'" . concat ( value . toString ( ) ) . concat ( "'" ) ) ; } if ( value instanceof Date ) { String dateString = DateConverterFactory . getDateConverter ( ) . toStandardS...
public class Base { /** * Same as { @ link DB # withDb ( String , String , String , String , Supplier ) } , but with db name { @ link DB # DEFAULT _ NAME } . */ public static < T > T withDb ( String driver , String url , String user , String password , Supplier < T > supplier ) { } }
return new DB ( DB . DEFAULT_NAME ) . withDb ( driver , url , user , password , supplier ) ;
public class MessageMLParser { /** * Create a MessageML element based on the DOM element ' s name and attributes . */ public Element createElement ( org . w3c . dom . Element element , Element parent ) throws InvalidInputException { } }
String tag = element . getNodeName ( ) ; if ( Header . isHeaderElement ( tag ) ) { return new Header ( parent , tag ) ; } switch ( tag ) { case Chime . MESSAGEML_TAG : validateFormat ( tag ) ; return new Chime ( parent , FormatEnum . MESSAGEML ) ; case Chime . PRESENTATIONML_TAG : return new Chime ( parent , FormatEnum...
public class IconEnricher { /** * Iterates through all nodes of the given KeePass file and replace the * nodes with enriched icon data nodes . * @ param keePassFile * the KeePass file which should be iterated * @ return an enriched KeePass file */ public KeePassFile enrichNodesWithIconData ( KeePassFile keePass...
CustomIcons iconLibrary = keePassFile . getMeta ( ) . getCustomIcons ( ) ; GroupZipper zipper = new GroupZipper ( keePassFile ) ; Iterator < Group > iter = zipper . iterator ( ) ; while ( iter . hasNext ( ) ) { Group group = iter . next ( ) ; byte [ ] iconData = getIconData ( group . getCustomIconUuid ( ) , group . get...
public class DRL5Lexer { /** * $ ANTLR start " DOUBLE _ AMPER " */ public final void mDOUBLE_AMPER ( ) throws RecognitionException { } }
try { int _type = DOUBLE_AMPER ; int _channel = DEFAULT_TOKEN_CHANNEL ; // src / main / resources / org / drools / compiler / lang / DRL5Lexer . g : 271:5 : ( ' & & ' ) // src / main / resources / org / drools / compiler / lang / DRL5Lexer . g : 271:7 : ' & & ' { match ( "&&" ) ; if ( state . failed ) return ; } state ...
public class Inflector { /** * Forge a name from a class and a method . If an annotation is provided , then the method * content is used . * @ param cl Class to get the name * @ param m Method to get the name * @ param methodAnnotation The method annotation to override the normal forged name * @ return The na...
return forgeName ( cl , m . getName ( ) , methodAnnotation ) ;
public class Category { /** * Return the level in effect for this category / logger . * The result is computed by simulation . * @ return */ public Level getEffectiveLevel ( ) { } }
if ( slf4jLogger . isTraceEnabled ( ) ) { return Level . TRACE ; } if ( slf4jLogger . isDebugEnabled ( ) ) { return Level . DEBUG ; } if ( slf4jLogger . isInfoEnabled ( ) ) { return Level . INFO ; } if ( slf4jLogger . isWarnEnabled ( ) ) { return Level . WARN ; } return Level . ERROR ;
public class TagSetMappingsToNAF { /** * Mapping between CoNLL 2009 German tagset and NAF tagset . Based on the * Stuttgart - Tuebingen tagset . * @ param postag * the postag * @ return NAF POS tag */ private static String mapGermanCoNLL09TagSetToNAF ( final String postag ) { } }
if ( postag . startsWith ( "ADV" ) ) { return "A" ; // adverb } else if ( postag . startsWith ( "KO" ) ) { return "C" ; // conjunction } else if ( postag . equalsIgnoreCase ( "ART" ) ) { return "D" ; // determiner and predeterminer } else if ( postag . startsWith ( "ADJ" ) ) { return "G" ; // adjective } else if ( post...
public class DefaultStorageStrategy { /** * Gets the currently stored token . * @ param envKey Environment key for token . * @ return Currently stored token instance or null . */ @ Override public OAuthToken get ( String envKey ) { } }
if ( ! oAuthToken . containsKey ( envKey ) ) return null ; return oAuthToken . get ( envKey ) ;
public class CachingJaxbLoaderImpl { /** * / * ( non - Javadoc ) * @ see org . jasig . services . persondir . support . xml . CachingJaxbLoader # getUnmarshalledObject ( org . jasig . services . persondir . support . xml . CachingJaxbLoader . UnmarshallingCallback ) */ @ Override public T getUnmarshalledObject ( fina...
// Only bother checking for a change if the object already exists Long lastModified = null ; if ( this . unmarshalledObject != null ) { lastModified = this . getLastModified ( ) ; // Return immediately if nothing has changed if ( this . isCacheValid ( lastModified ) ) { return this . unmarshalledObject ; } } final Inpu...
public class EnterpriseContainerBase { /** * { @ inheritDoc } * @ see org . jboss . shrinkwrap . api . container . EnterpriseContainer # addAsModules ( java . io . File [ ] ) */ @ Override public T addAsModules ( final File ... resources ) throws IllegalArgumentException { } }
// Precondition checks Validate . notNull ( resources , "resources must be specified" ) ; // Add each for ( final File resource : resources ) { this . addAsModule ( resource ) ; } // Return return this . covarientReturn ( ) ;
public class BigtableTableAdminGrpcClient { /** * { @ inheritDoc } */ @ Override public ListenableFuture < ListTablesResponse > listTablesAsync ( ListTablesRequest request ) { } }
return createUnaryListener ( request , listTablesRpc , request . getParent ( ) ) . getAsyncResult ( ) ;
public class LinkedTransferQueue { /** * Returns the first unmatched data node , or null if none . * Callers must recheck if the returned node ' s item field is null * or self - linked before using . */ final Node firstDataNode ( ) { } }
restartFromHead : for ( ; ; ) { for ( Node p = head ; p != null ; ) { Object item = p . item ; if ( p . isData ) { if ( item != null && item != FORGOTTEN ) return p ; } else if ( item == null ) break ; if ( UNLINKED == ( p = p . next ) ) continue restartFromHead ; } return null ; }
public class DeviceManager { /** * Check if an attribute or an command is polled * @ param polledObject The name of the polled object ( attribute or command ) * @ return true if polled * @ throws DevFailed */ public boolean isPolled ( final String polledObject ) throws DevFailed { } }
try { return AttributeGetterSetter . getAttribute ( polledObject , device . getAttributeList ( ) ) . isPolled ( ) ; } catch ( final DevFailed e ) { return device . getCommand ( polledObject ) . isPolled ( ) ; }
public class RRFedNonFedBudgetV1_1Generator { /** * This method gets Travel cost information including DomesticTravelCost , ForeignTravelCost and TotalTravelCost in the * BudgetYearDataType based on BudgetPeriodInfo for the RRFedNonFedBudget . * @ param periodInfo ( BudgetPeriodInfo ) budget period entry . * @ re...
Travel travel = Travel . Factory . newInstance ( ) ; if ( periodInfo != null ) { TotalDataType total = TotalDataType . Factory . newInstance ( ) ; if ( periodInfo . getDomesticTravelCost ( ) != null ) { total . setFederal ( periodInfo . getDomesticTravelCost ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getDomestic...
public class PortletRequestContextImpl { /** * ( non - Javadoc ) * @ see org . apache . pluto . container . PortletRequestContext # getAttribute ( java . lang . String , javax . servlet . ServletRequest ) */ @ Override public Object getAttribute ( String name , ServletRequest request ) { } }
if ( this . isServletContainerManagedAttribute ( name ) ) { return request . getAttribute ( name ) ; } return null ;
public class MapApi { /** * Get list value by path . * @ param < T > list value type * @ param clazz type of value * @ param map subject * @ param path nodes to walk in map * @ return value */ public static < T > List < T > getNullableList ( final Map map , final Class < T > clazz , final Object ... path ) { ...
return ( List < T > ) getNullable ( map , List . class , path ) ;
public class MementoUtils { /** * Add { @ code Vary : accept - datetime } header and { @ code Link } header for * timegate response . See * { @ link # generateMementoLinkHeaders ( CaptureSearchResults , WaybackRequest , boolean , boolean ) } * for details of { @ code Link } header . * @ param response * @ par...
addVaryHeader ( response ) ; addLinkHeader ( response , results , wbr , false , includeOriginal ) ;
public class ConverterForOPML10 { /** * Creates real feed with a deep copy / conversion of the values of a SyndFeedImpl . * @ param syndFeed SyndFeedImpl to copy / convert value from . * @ return a real feed with copied / converted values of the SyndFeedImpl . */ @ Override public WireFeed createRealFeed ( final Sy...
final List < SyndEntry > entries = Collections . synchronizedList ( syndFeed . getEntries ( ) ) ; final HashMap < String , Outline > entriesByNode = new HashMap < String , Outline > ( ) ; // this will hold entries that we can ' t parent the first time . final ArrayList < OutlineHolder > doAfterPass = new ArrayList < Ou...