signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class MmtfUtils { /** * Get a list of length N * 16 of a list of Matrix4d * N . * @ param ncsOperators the { @ link Matrix4d } list * @ return the list of length N * 16 of the list of matrices */ public static double [ ] [ ] getNcsAsArray ( Matrix4d [ ] ncsOperators ) { } }
if ( ncsOperators == null ) { return new double [ 0 ] [ 0 ] ; } double [ ] [ ] outList = new double [ ncsOperators . length ] [ 16 ] ; for ( int i = 0 ; i < ncsOperators . length ; i ++ ) { outList [ i ] = convertToDoubleArray ( ncsOperators [ i ] ) ; } return outList ;
public class PatchOperationTarget { /** * Create a host target . * @ param hostName the host name * @ param client the connected controller client to the master host . * @ return the remote target */ public static final PatchOperationTarget createHost ( final String hostName , final ModelControllerClient client )...
final PathElement host = PathElement . pathElement ( HOST , hostName ) ; final PathAddress address = PathAddress . EMPTY_ADDRESS . append ( host , CORE_SERVICES ) ; return new RemotePatchOperationTarget ( address , client ) ;
public class BaseNeo4jEntityQueries { /** * Example : CREATE ( n : ENTITY : table { props } ) RETURN n */ private static String initCreateEntityWithPropertiesQuery ( EntityKeyMetadata entityKeyMetadata ) { } }
StringBuilder queryBuilder = new StringBuilder ( "CREATE " ) ; queryBuilder . append ( "(n:" ) ; queryBuilder . append ( ENTITY ) ; queryBuilder . append ( ":" ) ; appendLabel ( entityKeyMetadata , queryBuilder ) ; // We should not pass a map as parameter as Neo4j cannot cache the query plan for it queryBuilder . appen...
public class ObjectMappableProcessor { /** * Generates the ContentValues Builder Class * @ param clazz The class you want to create a builder for * @ param className The classname @ return The Builder class */ private TypeSpec generateContentValuesBuilderClass ( ObjectMappableAnnotatedClass clazz , String mapperCla...
String cvVarName = "contentValues" ; MethodSpec constructor = MethodSpec . constructorBuilder ( ) . addModifiers ( Modifier . PRIVATE ) . addStatement ( "$L = new $T()" , cvVarName , ClassName . get ( ContentValues . class ) ) . build ( ) ; TypeSpec . Builder builder = TypeSpec . classBuilder ( className ) . addJavadoc...
public class InternalQueries { /** * Coverts list of objects to { @ code List < String > } . * @ param args list of objects that will be converted to list of strings . * @ return non - null , unmodifiable list of strings . */ @ NonNull public static List < String > unmodifiableNonNullListOfStrings ( @ Nullable List...
if ( args == null || args . isEmpty ( ) ) { return emptyList ( ) ; } else { final List < String > list = new ArrayList < String > ( args . size ( ) ) ; for ( Object arg : args ) { list . add ( arg != null ? arg . toString ( ) : "null" ) ; } return unmodifiableList ( list ) ; }
public class Remove_First { /** * remove _ first ( input , string ) * remove the first occurrences of a substring */ @ Override public Object apply ( Object value , Object ... params ) { } }
String original = super . asString ( value ) ; Object needle = super . get ( 0 , params ) ; if ( needle == null ) { throw new RuntimeException ( "invalid pattern: " + needle ) ; } return original . replaceFirst ( Pattern . quote ( String . valueOf ( needle ) ) , "" ) ;
public class MBeanRegistry { /** * Builds an MBean path and creates an ObjectName instance using the path . * @ param path MBean path * @ param bean the MBean instance * @ return ObjectName to be registered with the platform MBean server */ protected ObjectName makeObjectName ( String path , ZKMBeanInfo bean ) th...
if ( path == null ) return null ; StringBuilder beanName = new StringBuilder ( CommonNames . DOMAIN + ":" ) ; int counter = 0 ; counter = tokenize ( beanName , path , counter ) ; tokenize ( beanName , bean . getName ( ) , counter ) ; beanName . deleteCharAt ( beanName . length ( ) - 1 ) ; try { return new ObjectName ( ...
public class PageSQLInterceptor { /** * 执行总条数查询并设置值 * @ param connection * @ param mappedStatement * @ param boundSql */ private void setPageTotalCount ( Connection connection , MappedStatement mappedStatement , BoundSql boundSql ) { } }
PreparedStatement preparedStatement = null ; ResultSet resultSet = null ; try { preparedStatement = connection . prepareStatement ( createCountSql ( boundSql . getSql ( ) ) ) ; ParameterHandler parameterHandler = new DefaultParameterHandler ( mappedStatement , boundSql . getParameterObject ( ) , boundSql ) ; parameterH...
public class CmsToolbar { /** * Sets the toolbar title label . < p > * @ param title the title */ public void setAppTitle ( String title ) { } }
if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( title ) ) { if ( m_titleLabel != null ) { m_titleLabel . removeFromParent ( ) ; m_titleLabel = null ; } } else { if ( m_titleLabel == null ) { m_titleLabel = new Label ( ) ; m_titleLabel . setStyleName ( I_CmsLayoutBundle . INSTANCE . toolbarCss ( ) . title ( ) ) ; m_butto...
public class FinalizeMigrationOperation { /** * Sets all replica versions to { @ code 0 } up to the { @ code replicaIndex } . */ private long [ ] updatePartitionReplicaVersions ( PartitionReplicaManager replicaManager , int partitionId , ServiceNamespace namespace , int replicaIndex ) { } }
long [ ] versions = replicaManager . getPartitionReplicaVersions ( partitionId , namespace ) ; // No need to set versions back right now . actual version array is modified directly . Arrays . fill ( versions , 0 , replicaIndex , 0 ) ; return versions ;
public class DefaultApplicationRouter { /** * load the configuration file as defined in appendix C of JSR289 */ public void init ( ) { } }
defaultApplicationRouterParser . init ( ) ; try { defaultSipApplicationRouterInfos = defaultApplicationRouterParser . parse ( ) ; } catch ( ParseException e ) { log . fatal ( "Impossible to parse the default application router configuration file" , e ) ; throw new IllegalArgumentException ( "Impossible to parse the def...
public class ContextServiceImpl { /** * Ignore , warn , or fail when a configuration error occurs . * This is copied from Tim ' s code in tWAS and updated slightly to * override with the Liberty ignore / warn / fail setting . * Precondition : invoker must have lock on this context service , in order to read the o...
// Read the value each time in order to allow for changes to the onError setting switch ( ( OnError ) properties . get ( OnErrorUtil . CFG_KEY_ON_ERROR ) ) { case IGNORE : if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "ignoring error: " + msgKey , objs ) ; return nu...
public class CommerceShippingFixedOptionLocalServiceBaseImpl { /** * Creates a new commerce shipping fixed option with the primary key . Does not add the commerce shipping fixed option to the database . * @ param commerceShippingFixedOptionId the primary key for the new commerce shipping fixed option * @ return the...
return commerceShippingFixedOptionPersistence . create ( commerceShippingFixedOptionId ) ;
public class Node { /** * syck _ map _ empty */ public void mapEmpty ( ) { } }
Data . Map m = ( Data . Map ) data ; m . idx = 0 ; m . capa = YAML . ALLOC_CT ; m . keys = new Object [ m . capa ] ; m . values = new Object [ m . capa ] ;
public class StringUtils { /** * Turn the given Object into a String with single quotes if it is a String ; * keeping the Object as - is else . * @ param obj * the input Object ( e . g . " myString " ) * @ return the quoted String ( e . g . " ' myString ' " ) , or the input object as - is * if not a String */...
return obj instanceof String ? quote ( ( String ) obj ) : obj ;
public class BeginDownloadResult { /** * Returns true if field corresponding to fieldID is set ( has been assigned a value ) and false otherwise */ public boolean isSet ( _Fields field ) { } }
if ( field == null ) { throw new IllegalArgumentException ( ) ; } switch ( field ) { case VERSION : return is_set_version ( ) ; case SESSION : return is_set_session ( ) ; case DATA_SIZE : return is_set_data_size ( ) ; } throw new IllegalStateException ( ) ;
public class ComputerSet { /** * { @ code getTotalExecutors ( ) - getBusyExecutors ( ) } , plus executors that are being brought online . */ public int getIdleExecutors ( ) { } }
int r = 0 ; for ( Computer c : get_all ( ) ) if ( ( c . isOnline ( ) || c . isConnecting ( ) ) && c . isAcceptingTasks ( ) ) r += c . countIdle ( ) ; return r ;
public class ReflectionUtils { /** * < p > getDeclaredFieldValue . < / p > * @ param object a { @ link java . lang . Object } object . * @ param declaredFieldName a { @ link java . lang . String } object . * @ return a { @ link java . lang . Object } object . * @ throws java . lang . Exception if any . */ publi...
Field field = object . getClass ( ) . getDeclaredField ( declaredFieldName ) ; field . setAccessible ( true ) ; return field . get ( object ) ;
public class InvokerTask { /** * Utility method that serializes a task result , or the failure that occurred when attempting * to serialize the task result . * @ param result non - null task result * @ param loader class loader that can deserialize the task and result . * @ return serialized bytes */ @ FFDCIgno...
try { return persistentExecutor . serialize ( result ) ; } catch ( Throwable x ) { return persistentExecutor . serialize ( new TaskFailure ( x , loader , persistentExecutor , TaskFailure . NONSER_RESULT , result . getClass ( ) . getName ( ) ) ) ; }
public class VisualizationTree { /** * Process new result combinations of an object type1 ( in first hierarchy ) * having a child of type2 ( in second hierarchy ) . * This is a bit painful , because we have two hierarchies with different * types : results , and visualizations . * @ param context Context * @ p...
final Hierarchy < Object > hier = context . getVisHierarchy ( ) ; // Search start in first hierarchy : if ( start instanceof Result ) { for ( It < A > it1 = context . getHierarchy ( ) . iterDescendantsSelf ( ( Result ) start ) . filter ( type1 ) ; it1 . valid ( ) ; it1 . advance ( ) ) { final A result = it1 . get ( ) ;...
public class SolverWorldConnection { /** * Sends a collection of updated Attribute values to the world model , or * buffers them to be sent later if the World Model is not connected . * @ param attributes * the Attribute values to send . * @ return { @ code true } if the solutions were able to be sent immediate...
if ( this . terminated ) { throw new IllegalStateException ( "Cannot send solutions to the World Model once the connection has been destroyed." ) ; } if ( this . canSend ) { return this . wmi . updateAttributes ( attributes ) ; } for ( Attribute a : attributes ) { if ( ! this . attributeBuffer . offer ( a ) ) { return ...
public class SFS { /** * Attempts to add one feature to the list of features while increasing or * maintaining the current accuracy * @ param available the set of available features from [ 0 , n ) to consider * for adding * @ param dataSet the original data set to perform feature selection from * @ param catT...
int nCat = dataSet . getNumCategoricalVars ( ) ; int curBest = - 1 ; double curBestScore = Double . POSITIVE_INFINITY ; for ( int feature : available ) { removeFeature ( feature , nCat , catToRemove , numToRemove ) ; DataSet workOn = dataSet . shallowClone ( ) ; RemoveAttributeTransform remove = new RemoveAttributeTran...
public class OkHttpClientFactory { /** * Creates an OkHttpClient optionally enabling TLS * @ param enableTLS Whether TLS should be enabled * @ return a valid OkHttpClient */ @ NonNull private static OkHttpClient getNewOkHttpClient ( boolean enableTLS ) { } }
OkHttpClient . Builder client = new OkHttpClient . Builder ( ) . connectTimeout ( DEFAULT_CONNECT_TIMEOUT , TimeUnit . SECONDS ) . readTimeout ( DEFAULT_READ_TIMEOUT , TimeUnit . SECONDS ) ; if ( enableTLS ) { client = enableTls12 ( client ) ; } return client . build ( ) ;
public class UnicodeCompressor { /** * Compress a Unicode character array into a byte array . * This function will only consume input that can be completely * output . * @ param charBuffer The character buffer to compress . * @ param charBufferStart The start of the character run to compress . * @ param charB...
// the current position in the target byte buffer int bytePos = byteBufferStart ; // the current position in the source unicode character buffer int ucPos = charBufferStart ; // the current unicode character from the source buffer int curUC = INVALIDCHAR ; // the index for the current character int curIndex = - 1 ; // ...
public class FieldDataScratchHandler { /** * Constructor . * @ param field The basefield owner of this listener ( usually null and set on setOwner ( ) ) . */ public void init ( BaseField field , boolean bChangeDataOnRefresh ) { } }
super . init ( field ) ; m_objOriginalData = null ; m_bAlwaysEnabled = false ; m_bChangeDataOnRefresh = bChangeDataOnRefresh ; this . setRespondsToMode ( DBConstants . SCREEN_MOVE , false ) ;
public class VoltCompiler { /** * Compile empty catalog jar * @ param jarOutputPath output jar path * @ return true if successful */ public boolean compileEmptyCatalog ( final String jarOutputPath ) { } }
// Use a special DDL reader to provide the contents . List < VoltCompilerReader > ddlReaderList = new ArrayList < > ( 1 ) ; ddlReaderList . add ( new VoltCompilerStringReader ( "ddl.sql" , m_emptyDDLComment ) ) ; // Seed it with the DDL so that a version upgrade hack in compileInternalToFile ( ) // doesn ' t try to get...
public class Character { /** * Returns the index within the given char sequence that is offset * from the given { @ code index } by { @ code codePointOffset } * code points . Unpaired surrogates within the text range given by * { @ code index } and { @ code codePointOffset } count as * one code point each . *...
int length = seq . length ( ) ; if ( index < 0 || index > length ) { throw new IndexOutOfBoundsException ( ) ; } int x = index ; if ( codePointOffset >= 0 ) { int i ; for ( i = 0 ; x < length && i < codePointOffset ; i ++ ) { if ( isHighSurrogate ( seq . charAt ( x ++ ) ) && x < length && isLowSurrogate ( seq . charAt ...
public class PdfStamperImp { /** * Sets the open and close page additional action . * @ param actionType the action type . It can be < CODE > PdfWriter . PAGE _ OPEN < / CODE > * or < CODE > PdfWriter . PAGE _ CLOSE < / CODE > * @ param action the action to perform * @ param page the page where the action will ...
if ( ! actionType . equals ( PAGE_OPEN ) && ! actionType . equals ( PAGE_CLOSE ) ) throw new PdfException ( "Invalid page additional action type: " + actionType . toString ( ) ) ; PdfDictionary pg = reader . getPageN ( page ) ; PdfDictionary aa = ( PdfDictionary ) PdfReader . getPdfObject ( pg . get ( PdfName . AA ) , ...
public class GraphRunJobsDependencies { /** * warning : this will fail if the user has an escape path separator in a path */ private static Optional < File > findExecutableOnSystemPath ( final String executableName ) { } }
for ( final String pathPath : Splitter . on ( File . pathSeparator ) . split ( System . getenv ( "PATH" ) ) ) { final File probeFile = new File ( pathPath , executableName ) ; if ( probeFile . isFile ( ) && java . nio . file . Files . isExecutable ( probeFile . toPath ( ) ) ) { return Optional . of ( probeFile ) ; } } ...
public class AbstractCandidateFactory { /** * Randomly , create an initial population of candidates . If some * control is required over the composition of the initial population , * consider the overloaded { @ link # generateInitialPopulation ( int , Collection , Random ) } * method . * @ param populationSize ...
List < T > population = new ArrayList < T > ( populationSize ) ; for ( int i = 0 ; i < populationSize ; i ++ ) { population . add ( generateRandomCandidate ( rng ) ) ; } return Collections . unmodifiableList ( population ) ;
public class CommerceTierPriceEntryPersistenceImpl { /** * Returns a range of all the commerce tier price entries where companyId = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys ...
return findByCompanyId ( companyId , start , end , null ) ;
public class Burst { /** * Explode a list of argument values for invoking the specified method with all combinations of * its parameters . */ public static Enum < ? > [ ] [ ] explodeArguments ( Method method ) { } }
checkNotNull ( method , "method" ) ; return explodeParameters ( method . getParameterTypes ( ) , method . getDeclaringClass ( ) . getName ( ) + '.' + method . getName ( ) + " method" ) ;
public class EclipseIndexWriter { /** * Logic for adding various end index entry elements for Eclipse help . * @ param term The indexterm to be processed . * @ param printWriter The Writer used for writing content to disk . * @ param indexsee Boolean value for using the new markup for see references . */ private ...
if ( indexsee ) { if ( term . getTermPrefix ( ) != null ) { serializer . writeEndElement ( ) ; // see inIndexsee = false ; } else if ( inIndexsee ) { // NOOP } else { serializer . writeEndElement ( ) ; // entry } } else { serializer . writeEndElement ( ) ; // entry }
public class JCloudsReader { /** * { @ inheritDoc } */ @ Override public UberBucket readUber ( ) throws TTIOException { } }
try { final Blob blobRetrieved = mBlobStore . getBlob ( mResourceName , Long . toString ( - 1l ) ) ; final DataInputStream datain = new DataInputStream ( blobRetrieved . getPayload ( ) . getInput ( ) ) ; final long uberkey = datain . readLong ( ) ; final UberBucket bucket = ( UberBucket ) read ( uberkey ) ; datain . cl...
public class FnNumber { /** * Determines whether the target object is null or not . * @ return true if the target object is null , false if not . */ public static final Function < Number , Boolean > isNull ( ) { } }
return ( Function < Number , Boolean > ) ( ( Function ) FnObject . isNull ( ) ) ;
public class JtsLayer { /** * Validate the JtsLayer . * @ param name mvt layer name * @ param geometries geometries in the tile * @ throws IllegalArgumentException when { @ code name } or { @ code geometries } are null */ private static void validate ( String name , Collection < Geometry > geometries , int extent...
if ( name == null ) { throw new IllegalArgumentException ( "layer name is null" ) ; } if ( geometries == null ) { throw new IllegalArgumentException ( "geometry collection is null" ) ; } if ( extent <= 0 ) { throw new IllegalArgumentException ( "extent is less than or equal to 0" ) ; }
public class FastProtocolRegister { /** * Registers a FastProtocol ' s method for a given id ( name ) . The names should * be unique , it is not possible to re - use a name for a different method . */ public static void register ( FastProtocolId id , Method m ) { } }
synchronized ( FastProtocolRegister . class ) { String name = id . toString ( ) ; if ( name . length ( ) != NAME_LEN ) { // we only allow two - byte serialization codes throw new RuntimeException ( "Code must be " + NAME_LEN + " bytes long" ) ; } if ( m == null ) { throw new RuntimeException ( "Method cannot be null" )...
public class KeywordEstimate { /** * Gets the min value for this KeywordEstimate . * @ return min * The lower bound on the estimated stats . * < p > This is not a guarantee that actual performance * will never be lower than * these stats . */ public com . google . api . ads . adwords . axis . v201809 . o . Stat...
return min ;
public class ThreadSettingsApi { /** * This method is used to add any payment settings needed . * @ param paymentSettings * the payment settings object . * @ see < a * href = " https : / / developers . facebook . com / docs / messenger - platform / thread - settings / payment " * > Payments settings < / a > *...
if ( paymentSettings == null ) { logger . error ( "FbBotMill validation error: Payment Settings can't be null or empty!" ) ; return ; } FbBotMillNetworkController . postThreadSetting ( paymentSettings ) ;
public class FpKit { /** * Concatenates two lists into one * @ param l1 the first list to concatenate * @ param l2 the second list to concatenate * @ param < T > the type of element of the lists * @ return a < strong > new < / strong > list composed of the two concatenated lists elements */ public static < T > ...
ArrayList < T > l = new ArrayList < > ( l1 ) ; l . addAll ( l2 ) ; l . trimToSize ( ) ; return l ;
public class Utils { /** * / * from https : / / github . com / apache / httpcomponents - client / commit / b58e7d46d75e1d3c42f5fd6db9bd45f32a49c639 # diff - a74b24f025e68ec11e4550b42e9f807d */ static String encodePath ( String content , Charset charset ) { } }
final StringBuilder buf = new StringBuilder ( ) ; final ByteBuffer bb = charset . encode ( content ) ; while ( bb . hasRemaining ( ) ) { final int b = bb . get ( ) & 0xff ; if ( PATHSAFE . get ( b ) ) { buf . append ( ( char ) b ) ; } else { buf . append ( "%" ) ; final char hex1 = Character . toUpperCase ( Character ....
public class MMORGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case AfplibPackage . MMORG__OV_LID : return getOVLid ( ) ; case AfplibPackage . MMORG__FLAGS : return getFlags ( ) ; case AfplibPackage . MMORG__OV_LNAME : return getOVLname ( ) ; } return super . eGet ( featureID , resolve , coreType ) ;
public class PutEventsRequest { /** * The entry that defines an event in your system . You can specify several parameters for the entry such as the * source and type of the event , resources associated with the event , and so on . * @ param entries * The entry that defines an event in your system . You can specif...
if ( entries == null ) { this . entries = null ; return ; } this . entries = new java . util . ArrayList < PutEventsRequestEntry > ( entries ) ;
public class ListAssociationVersionsResult { /** * Information about all versions of the association for the specified association ID . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setAssociationVersions ( java . util . Collection ) } or { @ link # withAss...
if ( this . associationVersions == null ) { setAssociationVersions ( new com . amazonaws . internal . SdkInternalList < AssociationVersionInfo > ( associationVersions . length ) ) ; } for ( AssociationVersionInfo ele : associationVersions ) { this . associationVersions . add ( ele ) ; } return this ;
public class DocumentElement { /** * setter for medianFontsize - sets * @ generated * @ param v value to set into the feature */ public void setMedianFontsize ( double v ) { } }
if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_medianFontsize == null ) jcasType . jcas . throwFeatMissing ( "medianFontsize" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; jcasType . ll_cas . ll_setDoubleValue ( addr , ( ( DocumentElement_Type ) jcasType ) . casFeatCode_median...
public class IndyMath { /** * Widens the operators . For math operations like a + b we generally * execute them using a conversion to certain types . If a for example * is an int and b a byte , we do the operation using integer math . This * method gives a simplified MethodType that contains the two operators *...
if ( mt . parameterCount ( ) == 2 ) { Class leftType = mt . parameterType ( 0 ) ; Class rightType = mt . parameterType ( 1 ) ; if ( isIntCategory ( leftType ) && isIntCategory ( rightType ) ) return IIV ; if ( isLongCategory ( leftType ) && isLongCategory ( rightType ) ) return LLV ; if ( isBigDecCategory ( leftType ) ...
public class NettyUtils { /** * Read a socket address from a buffer . The socket address will be provided * as two strings containing host and port . * @ param buffer * The buffer containing the host and port as string . * @ return The InetSocketAddress object created from host and port or null * in case the ...
String remoteHost = NettyUtils . readString ( buffer ) ; int remotePort = 0 ; if ( buffer . readableBytes ( ) >= 4 ) { remotePort = buffer . readInt ( ) ; } else { return null ; } InetSocketAddress remoteAddress = null ; if ( null != remoteHost ) { remoteAddress = new InetSocketAddress ( remoteHost , remotePort ) ; } r...
public class AdaptiveTableManager { /** * Return column number which bounds contains X * @ param x coordinate * @ return column number */ int getColumnByXWithShift ( int x , int shiftEveryStep ) { } }
checkForInit ( ) ; int sum = 0 ; // header offset int tempX = x - mHeaderRowWidth ; if ( tempX <= sum ) { return 0 ; } for ( int count = mColumnWidths . length , i = 0 ; i < count ; i ++ ) { int nextSum = sum + mColumnWidths [ i ] + shiftEveryStep ; if ( tempX > sum && tempX < nextSum ) { return i ; } else if ( tempX <...
public class DefaultApplicationObjectConfigurer { /** * Attempts to load the message corresponding to the given message code * using this instance ' s { @ link MessageSource } and locale . * @ param messageCode The message code that will be used to retrieve the * message . Must not be null . * @ return The mess...
Assert . notNull ( messageCode , "messageCode" ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Resolving label with code '" + messageCode + "'" ) ; } try { return getMessageSource ( ) . getMessage ( messageCode , null , getLocale ( ) ) ; } catch ( NoSuchMessageException e ) { if ( logger . isInfoEnabled ( ) ...
public class Fn { /** * Synchronized { @ code Predicate } * @ param mutex to synchronized on * @ param a * @ param b * @ param triPredicate * @ return */ @ Beta public static < A , B , T > Predicate < T > sp ( final Object mutex , final A a , final B b , final TriPredicate < A , B , T > triPredicate ) { } }
N . checkArgNotNull ( mutex , "mutex" ) ; N . checkArgNotNull ( triPredicate , "triPredicate" ) ; return new Predicate < T > ( ) { @ Override public boolean test ( T t ) { synchronized ( mutex ) { return triPredicate . test ( a , b , t ) ; } } } ;
public class PipelineOutputConfig { /** * Optional . The < code > Permissions < / code > object specifies which users and / or predefined Amazon S3 groups you want * to have access to transcoded files and playlists , and the type of access you want them to have . You can grant * permissions to a maximum of 30 users...
if ( this . permissions == null ) { setPermissions ( new com . amazonaws . internal . SdkInternalList < Permission > ( permissions . length ) ) ; } for ( Permission ele : permissions ) { this . permissions . add ( ele ) ; } return this ;
public class ChronoStorage { /** * Returns the revision of the specified chrono storage block . * @ param revisionIndex * chronological order index * @ return */ public Revision get ( final int revisionIndex ) { } }
if ( this . storage . containsKey ( revisionIndex ) ) { ChronoStorageBlock block = this . storage . get ( revisionIndex ) ; return block . getRev ( ) ; } return null ;
public class CdnManager { /** * 预取文件链接 , 每次最多不可以超过100条 * 参考文档 : < a href = " http : / / developer . qiniu . com / fusion / api / file - prefetching " > 文件预取 < / a > * @ param urls 待预取的文件外链列表 * @ return 预取请求的回复 */ public CdnResult . PrefetchResult prefetchUrls ( String [ ] urls ) throws QiniuException { } }
if ( urls != null && urls . length > MAX_API_PREFETCH_URL_COUNT ) { throw new QiniuException ( new Exception ( "url count exceeds the max prefetch limit per request" ) ) ; } HashMap < String , String [ ] > req = new HashMap < > ( ) ; req . put ( "urls" , urls ) ; byte [ ] body = Json . encode ( req ) . getBytes ( Const...
public class Control { /** * Closes the old session and creates and opens an untitled database . * @ throws Exception if an error occurred while creating or opening the database . */ private void closeSessionAndCreateAndOpenUntitledDb ( ) throws Exception { } }
getExtensionLoader ( ) . sessionAboutToChangeAllPlugin ( null ) ; model . closeSession ( ) ; log . info ( "Create and Open Untitled Db" ) ; model . createAndOpenUntitledDb ( ) ;
public class UploadDemo { /** * 上传策略中设置persistentOps字段和persistentPipeline字段 */ public String getUpToken ( ) { } }
return auth . uploadToken ( bucketname , null , 3600 , new StringMap ( ) . putNotEmpty ( "persistentOps" , pfops ) . putNotEmpty ( "persistentPipeline" , pipeline ) , true ) ;
public class FastDtoa { /** * computed . */ static boolean grisu3 ( double v , FastDtoaBuilder buffer ) { } }
long bits = Double . doubleToLongBits ( v ) ; DiyFp w = DoubleHelper . asNormalizedDiyFp ( bits ) ; // boundary _ minus and boundary _ plus are the boundaries between v and its // closest floating - point neighbors . Any number strictly between // boundary _ minus and boundary _ plus will round to v when convert to a d...
public class Solo { /** * Sets the progress of the specified ProgressBar . Examples of ProgressBars are : { @ link android . widget . SeekBar } and { @ link android . widget . RatingBar } . * @ param progressBar the { @ link ProgressBar } * @ param progress the progress to set the { @ link ProgressBar } */ public v...
if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "setProgressBar(" + progressBar + ", " + progress + ")" ) ; } progressBar = ( ProgressBar ) waiter . waitForView ( progressBar , Timeout . getSmallTimeout ( ) ) ; setter . setProgressBar ( progressBar , progress ) ;
public class ControlToControllerER { /** * Navigates to the related ERs of the controllers of the given Control . * @ param match current pattern match * @ param ind mapped indices * @ return related ERs */ @ Override public Collection < BioPAXElement > generate ( Match match , int ... ind ) { } }
Control ctrl = ( Control ) match . get ( ind [ 0 ] ) ; return new HashSet < BioPAXElement > ( getRelatedERs ( ctrl ) ) ;
public class RemoteMongoCollectionImpl { /** * Inserts the provided document . If the document is missing an identifier , the client should * generate one . * @ param document the document to insert * @ return a task containing the result of the insert one operation */ public Task < RemoteInsertOneResult > insert...
return dispatcher . dispatchTask ( new Callable < RemoteInsertOneResult > ( ) { @ Override public RemoteInsertOneResult call ( ) { return proxy . insertOne ( document ) ; } } ) ;
public class DataBlockWriteOperation { /** * / * ( non - Javadoc ) * @ see net . timewalker . ffmq4 . storage . data . impl . journal . AbstractJournalOperation # writeTo ( net . timewalker . ffmq4 . storage . data . impl . journal . JournalFile ) */ @ Override protected void writeTo ( JournalFile journalFile ) throw...
super . writeTo ( journalFile ) ; journalFile . writeInt ( blockData . length ) ; journalFile . write ( blockData ) ;
public class CallbackOption { /** * Constructs a { @ link ICallback . CallbackOption } with predicate { @ link ICallback . ICallbackPredicate # alwaysTrue ( ) } and the specified * { @ link Priority } . * @ param < P > the generic type * @ param priority the priority * @ return the callback option */ public sta...
return new CallbackOption < > ( null , priority ) ;
public class SDKUtil { /** * 解析应答字符串 , 生成应答要素 * @ param str * 需要解析的字符串 * @ return 解析的结果map * @ throws UnsupportedEncodingException */ public static Map < String , String > parseQString ( String str ) { } }
Map < String , String > map = new HashMap < String , String > ( ) ; int len = str . length ( ) ; StringBuilder temp = new StringBuilder ( ) ; char curChar ; String key = null ; boolean isKey = true ; boolean isOpen = false ; // 值里有嵌套 char openName = 0 ; if ( len > 0 ) { for ( int i = 0 ; i < len ; i ++ ) { // 遍历整个带解析的字...
public class E { /** * Throws out a { @ link ConfigurationException } with cause and message specified . * @ param cause * the cause of the configuration error . * @ param message * the error message format pattern . * @ param args * the error message format arguments . */ public static ConfigurationExcepti...
throw new ConfigurationException ( cause , message , args ) ;
public class JSDocInfoBuilder { /** * Adds a marker to the current JSDocInfo and populates the marker with the * annotation information . */ public void markAnnotation ( String annotation , int lineno , int charno ) { } }
JSDocInfo . Marker marker = currentInfo . addMarker ( ) ; if ( marker != null ) { JSDocInfo . TrimmedStringPosition position = new JSDocInfo . TrimmedStringPosition ( ) ; position . setItem ( annotation ) ; position . setPositionInformation ( lineno , charno , lineno , charno + annotation . length ( ) ) ; marker . setA...
public class Log { /** * What a Terrible Failure : Report an exception that should never happen . * Similar to { @ link # wtf ( String , Throwable ) } , with a message as well . * @ param tag Used to identify the source of a log message . * @ param msg The message you would like logged . * @ param tr An excepti...
return wtf ( LOG_ID_MAIN , tag , msg , tr , false ) ;
public class RocksDBStateUploader { /** * Upload all the files to checkpoint fileSystem using specified number of threads . * @ param files The files will be uploaded to checkpoint filesystem . * @ param checkpointStreamFactory The checkpoint streamFactory used to create outputstream . * @ throws Exception Thrown...
Map < StateHandleID , StreamStateHandle > handles = new HashMap < > ( ) ; Map < StateHandleID , CompletableFuture < StreamStateHandle > > futures = createUploadFutures ( files , checkpointStreamFactory , closeableRegistry ) ; try { FutureUtils . waitForAll ( futures . values ( ) ) . get ( ) ; for ( Map . Entry < StateH...
public class AbstractBpmnActivityBehavior { /** * Subclasses that call leave ( ) will first pass through this method , before the regular { @ link FlowNodeActivityBehavior # leave ( ActivityExecution ) } is called . This way , we can check if the activity * has loop characteristics , and delegate to the behavior if t...
FlowElement currentFlowElement = execution . getCurrentFlowElement ( ) ; Collection < BoundaryEvent > boundaryEvents = findBoundaryEventsForFlowNode ( execution . getProcessDefinitionId ( ) , currentFlowElement ) ; if ( CollectionUtil . isNotEmpty ( boundaryEvents ) ) { executeCompensateBoundaryEvents ( boundaryEvents ...
public class Expressions { /** * Create a new Path expression * @ param type type of expression * @ param parent parent path * @ param property property name * @ return property path */ public static < T extends Enum < T > > EnumPath < T > enumPath ( Class < ? extends T > type , Path < ? > parent , String prope...
return new EnumPath < T > ( type , PathMetadataFactory . forProperty ( parent , property ) ) ;
public class CreateFunctionDefinitionVersionRequest { /** * A list of Lambda functions in this function definition version . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setFunctions ( java . util . Collection ) } or { @ link # withFunctions ( java . util ...
if ( this . functions == null ) { setFunctions ( new java . util . ArrayList < Function > ( functions . length ) ) ; } for ( Function ele : functions ) { this . functions . add ( ele ) ; } return this ;
public class Merger { /** * Merges argument iterators . Iterators should return values in natural order . * @ param < T > * @ param iterables * @ return */ public static < T > Iterable < T > merge ( Iterable < T > ... iterables ) { } }
return merge ( null , iterables ) ;
public class CollUtil { /** * 新建一个ArrayList * @ param < T > 集合元素类型 * @ param values 数组 * @ return ArrayList对象 */ @ SafeVarargs public static < T > ArrayList < T > newArrayList ( T ... values ) { } }
return ( ArrayList < T > ) list ( false , values ) ;
public class PropertyWidgetCollection { /** * Invoked whenever a configured property within this widget factory is * changed . */ public void onConfigurationChanged ( ) { } }
final Collection < PropertyWidget < ? > > widgets = getWidgets ( ) ; if ( logger . isDebugEnabled ( ) ) { final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "id=" ) ; sb . append ( System . identityHashCode ( this ) ) ; sb . append ( " - onConfigurationChanged() - notifying widgets:" ) ; sb . append ( widge...
public class ScriptRuntime { /** * Convert the value to a number . * See ECMA 9.3. */ public static double toNumber ( Object val ) { } }
for ( ; ; ) { if ( val instanceof Number ) return ( ( Number ) val ) . doubleValue ( ) ; if ( val == null ) return + 0.0 ; if ( val == Undefined . instance ) return NaN ; if ( val instanceof String ) return toNumber ( ( String ) val ) ; if ( val instanceof CharSequence ) return toNumber ( val . toString ( ) ) ; if ( va...
public class RelationalOperationsMatrix { /** * Checks whether the scl string is the contains relation . */ private static boolean contains_ ( String scl ) { } }
// Valid for all if ( scl . charAt ( 0 ) == 'T' && scl . charAt ( 1 ) == '*' && scl . charAt ( 2 ) == '*' && scl . charAt ( 3 ) == '*' && scl . charAt ( 4 ) == '*' && scl . charAt ( 5 ) == '*' && scl . charAt ( 6 ) == 'F' && scl . charAt ( 7 ) == 'F' && scl . charAt ( 8 ) == '*' ) return true ; return false ;
public class Locations { /** * Create the directory represented by the location if not exists . * @ param location the location for the directory . * @ throws java . io . IOException If the location cannot be created */ public static void mkdirsIfNotExists ( Location location ) throws IOException { } }
// Need to check & & mkdir & & check to deal with race condition if ( ! location . isDirectory ( ) && ! location . mkdirs ( ) && ! location . isDirectory ( ) ) { throw new IOException ( "Failed to create directory at " + location . toURI ( ) ) ; }
public class Utils4Swing { /** * Create a new resizeable frame with a panel as it ' s content pane and * position the frame . * @ param title * Frame title . * @ param content * Content . * @ param exitOnClose * Exit the program on closing the frame ? * @ param positioner * FramePositioner . * @ ret...
return createShowAndPosition ( title , content , exitOnClose , true , positioner ) ;
public class TrustedIdProvidersInner { /** * Updates the specified trusted identity provider . * @ param resourceGroupName The name of the Azure resource group . * @ param accountName The name of the Data Lake Store account . * @ param trustedIdProviderName The name of the trusted identity provider . This is used...
return updateWithServiceResponseAsync ( resourceGroupName , accountName , trustedIdProviderName ) . toBlocking ( ) . single ( ) . body ( ) ;
public class BoxRetentionPolicy { /** * Returns all the retention policies with specified filters . * @ param name a name to filter the retention policies by . A trailing partial match search is performed . * Set to null if no name filtering is required . * @ param type a policy type to filter the retention polic...
QueryStringBuilder queryString = new QueryStringBuilder ( ) ; if ( name != null ) { queryString . appendParam ( "policy_name" , name ) ; } if ( type != null ) { queryString . appendParam ( "policy_type" , type ) ; } if ( userID != null ) { queryString . appendParam ( "created_by_user_id" , userID ) ; } if ( fields . le...
public class StorageUtil { /** * reads a XML Element Attribute ans cast it to a Time Object * @ param config * @ param el XML Element to read Attribute from it * @ param attributeName Name of the Attribute to read * @ return Attribute Value */ public Time toTime ( Config config , Element el , String attributeNa...
DateTime dt = toDateTime ( config , el , attributeName ) ; if ( dt == null ) return null ; return new TimeImpl ( dt ) ;
public class JDBC4Statement { /** * Moves to this Statement object ' s next result , deals with any current ResultSet object ( s ) throws SQLException { throw SQLError . noSupport ( ) ; } according to the instructions specified by the given flag , and returns true if the next result is a ResultSet object . */ @ Overrid...
checkClosed ( ) ; switch ( current ) { case Statement . KEEP_CURRENT_RESULT : this . openResults . add ( this . result ) ; this . result = null ; this . lastUpdateCount = - 1 ; break ; case Statement . CLOSE_CURRENT_RESULT : closeCurrentResult ( ) ; break ; case Statement . CLOSE_ALL_RESULTS : closeCurrentResult ( ) ; ...
public class StartRemediationExecutionRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( StartRemediationExecutionRequest startRemediationExecutionRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( startRemediationExecutionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( startRemediationExecutionRequest . getConfigRuleName ( ) , CONFIGRULENAME_BINDING ) ; protocolMarshaller . marshall ( startRemediationExecutionRequest ....
public class SwitchYardServiceInvoker { /** * Invokes the request and returns the response . * @ param request the request * @ return the response */ public SwitchYardServiceResponse invoke ( SwitchYardServiceRequest request ) { } }
Map < String , Object > contextOut = new HashMap < String , Object > ( ) ; Object contentOut = null ; Object fault = null ; try { QName serviceName = request . getServiceName ( ) ; if ( serviceName == null ) { throw CommonKnowledgeMessages . MESSAGES . serviceNameNull ( ) ; } else if ( Strings . trimToNull ( serviceNam...
public class HandlerRegistry { /** * IBM : there was a ( reliable ) failure for double - unregister of a servlet without * this method : the compliance test ( TC12 ) unregisters via an alias . * Calling getServletByAlias separately from removeServlet left a window * for a double remove . Do the check atomically (...
final boolean destroy = true ; Servlet servlet = this . aliasMap . remove ( alias ) ; this . container . removeContextRoot ( alias ) ; ServletHandler handler = this . servletMap . remove ( servlet ) ; if ( handler != null ) { updateServletArray ( ) ; if ( destroy ) { handler . destroy ( ) ; } } else { throw new Illegal...
public class nsip { /** * Use this API to fetch all the nsip resources that are configured on netscaler . * This uses nsip _ args which is a way to provide additional arguments while fetching the resources . */ public static nsip [ ] get ( nitro_service service , nsip_args args ) throws Exception { } }
nsip obj = new nsip ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nsip [ ] response = ( nsip [ ] ) obj . get_resources ( service , option ) ; return response ;
public class SimpleFormValidator { /** * Validates if file is not empty */ public FormInputValidator notEmpty ( VisValidatableTextField field , String errorMsg ) { } }
EmptyInputValidator validator = new EmptyInputValidator ( errorMsg ) ; field . addValidator ( validator ) ; add ( field ) ; return validator ;
public class ValdrBeanValidation { /** * See class comment . * @ param args cli arguments */ public static void main ( String [ ] args ) { } }
org . apache . commons . cli . Options cliOptions = createCliOptions ( ) ; try { CommandLine cli = parseCli ( args , cliOptions ) ; Options options = loadOptions ( cli ) ; validate ( options ) ; ConstraintParser parser = new ConstraintParser ( options ) ; try { output ( parser , options . getOutputFile ( ) ) ; } catch ...
public class DoubleIntIndex { /** * Check if targeted column value in the row indexed i is less than the * search target object . * @ param i the index * @ return - 1 , 0 or + 1 */ private int compare ( int i ) { } }
if ( sortOnValues ) { if ( targetSearchValue > values [ i ] ) { return 1 ; } else if ( targetSearchValue < values [ i ] ) { return - 1 ; } } else { if ( targetSearchValue > keys [ i ] ) { return 1 ; } else if ( targetSearchValue < keys [ i ] ) { return - 1 ; } } return 0 ;
public class ZkUtils { /** * read all brokers in the zookeeper * @ param zkClient zookeeper client * @ return all brokers */ public static Cluster getCluster ( ZkClient zkClient ) { } }
Cluster cluster = new Cluster ( ) ; List < String > nodes = getChildrenParentMayNotExist ( zkClient , BrokerIdsPath ) ; for ( String node : nodes ) { final String brokerInfoString = readData ( zkClient , BrokerIdsPath + "/" + node ) ; cluster . add ( Broker . createBroker ( Integer . valueOf ( node ) , brokerInfoString...
public class BigDecimal { /** * Returns the length of the absolute value of a { @ code long } , in decimal * digits . * @ param x the { @ code long } * @ return the length of the unscaled value , in deciaml digits . */ static int longDigitLength ( long x ) { } }
/* * As described in " Bit Twiddling Hacks " by Sean Anderson , * ( http : / / graphics . stanford . edu / ~ seander / bithacks . html ) * integer log 10 of x is within 1 of ( 1233/4096 ) * ( 1 + * integer log 2 of x ) . The fraction 1233/4096 approximates * log10(2 ) . So we first do a version of log2 ( a vari...
public class RetryTemplateBuilder { /** * Allows retry if there is no more than { @ code timeout } millis since first attempt . * Invocation of this method does not discard default exception classification rule , * that is " retry only on { @ link Exception } and it ' s subclasses " . * @ param timeout whole exec...
Assert . isTrue ( timeout > 0 , "Timeout should be positive" ) ; Assert . isNull ( this . baseRetryPolicy , "You have already selected another retry policy" ) ; TimeoutRetryPolicy timeoutRetryPolicy = new TimeoutRetryPolicy ( ) ; timeoutRetryPolicy . setTimeout ( timeout ) ; this . baseRetryPolicy = timeoutRetryPolicy ...
public class CodecUtils { /** * 扁平化复制 * @ param prefix 前缀 * @ param sourceMap 原始map * @ param dstMap 目标map */ public static void flatCopyTo ( String prefix , Map < String , Object > sourceMap , Map < String , String > dstMap ) { } }
for ( Map . Entry < String , Object > entry : sourceMap . entrySet ( ) ) { String key = prefix + entry . getKey ( ) ; Object value = entry . getValue ( ) ; if ( value instanceof String ) { dstMap . put ( key , ( String ) value ) ; } else if ( value instanceof Number ) { dstMap . put ( key , value . toString ( ) ) ; } e...
public class ColumnSchema { /** * Returns generated value in the session context . */ Object getGeneratedValue ( Session session ) { } }
return generatingExpression == null ? null : generatingExpression . getValue ( session , dataType ) ;
public class JDBC4Connection { /** * Undoes all changes made in the current transaction and releases any database locks currently held by this Connection object . */ @ Override public void rollback ( ) throws SQLException { } }
checkClosed ( ) ; if ( props . getProperty ( ROLLBACK_THROW_EXCEPTION , "true" ) . equalsIgnoreCase ( "true" ) ) { throw SQLError . noSupport ( ) ; }
public class RecurringData { /** * Calculate start dates for a monthly relative recurrence . * @ param calendar current date * @ param frequency frequency * @ param dates array of start dates */ private void getMonthlyRelativeDates ( Calendar calendar , int frequency , List < Date > dates ) { } }
long startDate = calendar . getTimeInMillis ( ) ; calendar . set ( Calendar . DAY_OF_MONTH , 1 ) ; int dayNumber = NumberHelper . getInt ( m_dayNumber ) ; while ( moreDates ( calendar , dates ) ) { if ( dayNumber > 4 ) { setCalendarToLastRelativeDay ( calendar ) ; } else { setCalendarToOrdinalRelativeDay ( calendar , d...
public class Startup { /** * show corresponding contents for show ( ) */ String showDetail ( ) { } }
if ( isDefault ( ) || isEmpty ( ) ) { return "" ; } else { return entries . stream ( ) . map ( sue -> "---- " + sue . name + ( sue . timeStamp . isEmpty ( ) ? "" : " @ " + sue . timeStamp ) + " ----\n" + sue . content ) . collect ( joining ( ) ) ; }
public class MasterHooks { /** * Resets the master hooks . * @ param hooks The hooks to reset * @ throws FlinkException Thrown , if the hooks throw an exception . */ public static void reset ( final Collection < MasterTriggerRestoreHook < ? > > hooks , final Logger log ) throws FlinkException { } }
for ( MasterTriggerRestoreHook < ? > hook : hooks ) { final String id = hook . getIdentifier ( ) ; try { hook . reset ( ) ; } catch ( Throwable t ) { ExceptionUtils . rethrowIfFatalErrorOrOOM ( t ) ; throw new FlinkException ( "Error while resetting checkpoint master hook '" + id + '\'' , t ) ; } }
public class Stream { /** * Returns the first element wrapped by { @ code Optional } class . * If stream is empty , returns { @ code Optional . empty ( ) } . * < p > This is a short - circuiting terminal operation . * @ return an { @ code Optional } with the first element * or { @ code Optional . empty ( ) } if...
if ( iterator . hasNext ( ) ) { return Optional . of ( iterator . next ( ) ) ; } return Optional . empty ( ) ;
public class FederationPresenter { /** * - - - - - federation */ private void readFederation ( ) { } }
if ( federation != null ) { Operation fedOp = new Operation . Builder ( READ_RESOURCE_OPERATION , FEDERATION_TEMPLATE . resolve ( statementContext , federation ) ) . param ( RECURSIVE , true ) . build ( ) ; Operation sdOp = new Operation . Builder ( READ_CHILDREN_NAMES_OPERATION , AddressTemplate . of ( "{selected.prof...
public class MaskPasswordsConfig { /** * Adds a name / password pair at the global level . * < p > If either name or password is blank ( as defined per the Commons Lang * library ) , then the pair is not added . < / p > * @ since 2.7 */ public void addGlobalVarPasswordPair ( VarPasswordPair varPasswordPair ) { } ...
// blank values are forbidden if ( StringUtils . isBlank ( varPasswordPair . getVar ( ) ) || StringUtils . isBlank ( varPasswordPair . getPassword ( ) ) ) { LOGGER . fine ( "addGlobalVarPasswordPair NOT adding pair with null var or password" ) ; return ; } getGlobalVarPasswordPairsList ( ) . add ( varPasswordPair ) ;
public class ChronoHistory { /** * / * [ deutsch ] * < p > Erzeugt eine Kopie dieser Instanz mit der angegebenen & Auml ; rapr & auml ; ferenz . < / p > * < p > Diese Methode hat keine Auswirkung , wenn angewandt auf { @ code ChronoHistory . PROLEPTIC _ GREGORIAN } * oder { @ code ChronoHistory . PROLEPTIC _ JULI...
if ( eraPreference . equals ( this . eraPreference ) || ! this . hasGregorianCutOverDate ( ) ) { return this ; } return new ChronoHistory ( this . variant , this . events , this . ajly , this . nys , eraPreference ) ;