signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AbstractHttpServer { /** * ServerConfig转ServerTransportConfig * @ param serverConfig 服务端配置 * @ return ServerTransportConfig 服务传输层配置 */ private static ServerTransportConfig convertConfig ( ServerConfig serverConfig ) { } }
ServerTransportConfig serverTransportConfig = new ServerTransportConfig ( ) ; serverTransportConfig . setPort ( serverConfig . getPort ( ) ) ; serverTransportConfig . setProtocolType ( serverConfig . getProtocol ( ) ) ; serverTransportConfig . setHost ( serverConfig . getBoundHost ( ) ) ; serverTransportConfig . setCon...
public class StackModel { /** * { @ inheritDoc } */ @ Override protected void showView ( ) { } }
// On redisplay show the start page only if no page is displayed if ( this . currentModelKey == null ) { // Manage default page for Page Enum if ( getPageEnumClass ( ) != null && getPageEnumClass ( ) . isEnum ( ) && getPageEnumClass ( ) . getEnumConstants ( ) . length > 0 ) { doShowPageEnum ( getPageEnumClass ( ) . get...
public class Javacore { /** * Simulates a java core , for use with JVMs which do not have the com . ibm . jvm . Dump class available . The file is given a name which looks like a java core to avoid introducing new * ' must gathers ' for service . * @ return The file path for the generated java core file . */ privat...
logger . entry ( "simulateJavaCore" ) ; // Make up a unique filename using the same format as that used by the JVM ' s dump functions final SimpleDateFormat dateFormat = new SimpleDateFormat ( "yyyyMMdd.kkmmss.SSS0." ) ; final String dateString = dateFormat . format ( new Date ( ) ) ; boolean unique = false ; int count...
public class ItemCollectionMetrics { /** * An estimate of item collection size , in gigabytes . This value is a two - element array containing a lower bound and * an upper bound for the estimate . The estimate includes the size of all the items in the table , plus the size of * all attributes projected into all of ...
if ( sizeEstimateRangeGB == null ) { this . sizeEstimateRangeGB = null ; return ; } this . sizeEstimateRangeGB = new java . util . ArrayList < Double > ( sizeEstimateRangeGB ) ;
public class ClarkName { /** * Returns string representation as < a href = " http : / / jclark . com / xml / xmlns . htm " > defined < / a > by James Clark . * This is same as { @ code String } returned by { @ link javax . xml . namespace . QName # toString ( ) } . * @ param namespace namespace , can be null * @ ...
return StringUtil . isEmpty ( namespace ) ? localPart : '{' + namespace + '}' + localPart ;
public class WebSecurityPropagatorImpl { /** * The pattern match rules are as follows . * 1 ) their pattern values are String equivalent , or * 2 ) this pattern is the path - prefix pattern " / * " , or * 3 ) this pattern is a path - prefix pattern ( that is , it starts with * " / " and ends with " / * " ) and ...
if ( pattern1 . equals ( pattern2 ) ) { return true ; } if ( pattern1 . equals ( "/*" ) ) { return true ; } if ( pattern1 . startsWith ( "/" ) && pattern1 . endsWith ( "/*" ) ) { String subPattern = pattern1 . substring ( 0 , pattern1 . length ( ) - 2 ) ; int pLength = subPattern . length ( ) ; if ( pattern2 . startsWi...
public class ListFileFilter { /** * Initialize class fields . */ public void init ( BaseField fldTarget , String fsTarget ) { } }
m_hsFilter = null ; m_fldTarget = fldTarget ; m_fsTarget = fsTarget ; super . init ( null ) ;
public class DescribeParameterGroupsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeParameterGroupsRequest describeParameterGroupsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeParameterGroupsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeParameterGroupsRequest . getParameterGroupNames ( ) , PARAMETERGROUPNAMES_BINDING ) ; protocolMarshaller . marshall ( describeParameterGroupsReque...
public class KeyEncoder { /** * Encodes the given signed Short object into exactly 1 or 3 bytes for * descending order . If the Short object is never expected to be null , * consider encoding as a short primitive . * @ param value optional signed Short value to encode * @ param dst destination for encoded bytes...
if ( value == null ) { dst [ dstOffset ] = NULL_BYTE_LOW ; return 1 ; } else { dst [ dstOffset ] = NOT_NULL_BYTE_LOW ; DataEncoder . encode ( ( short ) ~ value . shortValue ( ) , dst , dstOffset + 1 ) ; return 3 ; }
public class FuzzyCondition { /** * { @ inheritDoc } */ @ Override public MoreObjects . ToStringHelper toStringHelper ( ) { } }
return toStringHelper ( this ) . add ( "value" , value ) . add ( "maxEdits" , maxEdits ) . add ( "prefixLength" , prefixLength ) . add ( "maxExpansions" , maxExpansions ) . add ( "transpositions" , transpositions ) ;
public class ExtractorModel { /** * Perform extraction . * @ param curProgress Current extraction progress . */ private void extract ( int curProgress ) { } }
if ( extractable != null ) { extractable . extractResource ( curProgress - lastProgress ) ; } for ( final ExtractorListener listener : listeners ) { listener . notifyExtracted ( resourceType , curProgress ) ; } lastProgress = curProgress ; if ( curProgress >= extractionCapacity ) { progress = extractionCapacity ; lastP...
public class PeepholeReplaceKnownMethods { /** * Tries to evaluate a method on the Math object */ private strictfp Node tryFoldKnownMathMethods ( Node subtree , Node callTarget ) { } }
// first collect the arguments , if they are all numbers then we proceed List < Double > args = ImmutableList . of ( ) ; for ( Node arg = callTarget . getNext ( ) ; arg != null ; arg = arg . getNext ( ) ) { Double d = NodeUtil . getNumberValue ( arg ) ; if ( d != null ) { if ( args . isEmpty ( ) ) { // lazily allocate ...
public class ServletLimiterBuilder { /** * Partition the limit by request attribute * @ return Chainable builder */ public ServletLimiterBuilder partitionByAttribute ( String name ) { } }
return partitionResolver ( request -> Optional . ofNullable ( request . getAttribute ( name ) ) . map ( Object :: toString ) . orElse ( null ) ) ;
public class RenameHandler { /** * Register the fact that an enum constant was renamed . * This handles the use case where an enum constant is renamed , but the enum class remains the same . * @ param oldName the old name of the enum constant , not null * @ param currentValue the current enum constant , not null ...
if ( oldName == null ) { throw new IllegalArgumentException ( "oldName must not be null" ) ; } if ( currentValue == null ) { throw new IllegalArgumentException ( "currentValue must not be null" ) ; } checkNotLocked ( ) ; Class < ? > enumType = currentValue . getDeclaringClass ( ) ; Map < String , Enum < ? > > perClass ...
public class OtpOutputStream { /** * Write an Erlang PID to the stream . * @ param pid * the pid */ public void write_pid ( OtpErlangPid pid ) { } }
write1 ( pid . tag ( ) ) ; write_atom ( pid . node ( ) ) ; write4BE ( pid . id ( ) ) ; write4BE ( pid . serial ( ) ) ; switch ( pid . tag ( ) ) { case OtpExternal . pidTag : write1 ( pid . creation ( ) ) ; break ; case OtpExternal . newPidTag : write4BE ( pid . creation ( ) ) ; break ; default : throw new AssertionErro...
public class Apptentive { /** * Use this to choose where to send the user when they are prompted to rate the app . This should be the same place * that the app was downloaded from . * @ param ratingProvider A { @ link IRatingProvider } value . */ public static void setRatingProvider ( IRatingProvider ratingProvider...
try { if ( ApptentiveInternal . isApptentiveRegistered ( ) ) { ApptentiveInternal . getInstance ( ) . setRatingProvider ( ratingProvider ) ; } } catch ( Exception e ) { ApptentiveLog . e ( CONVERSATION , e , "Exception while setting rating provider" ) ; logException ( e ) ; }
public class TcpClientImpl { /** * / * Visible for testing */ static < W , R > TcpClientImpl < W , R > _create ( ClientState < W , R > state , TcpClientEventPublisher eventPublisher ) { } }
DetachedChannelPipeline channelPipeline = state . unsafeDetachedPipeline ( ) ; state = state . channelProviderFactory ( new TcpChannelProviderFactory ( channelPipeline , state . getChannelProviderFactory ( ) ) ) ; HostConnectorFactory < W , R > hostConnectorFactory = new HostConnectorFactory < > ( state , eventPublishe...
public class AbstractJSBlock { /** * Adds a local variable declaration to this block * @ param sName * Name of the variable * @ param sInitValue * Initialization value for this variable . * @ return Newly generated { @ link JSVar } * @ throws JSNameAlreadyExistsException * if the name is not unique */ @ N...
return var ( sName , sInitValue == null ? JSExpr . NULL : JSExpr . lit ( sInitValue ) ) ;
public class BackupShortTermRetentionPoliciesInner { /** * Gets a database ' s short term retention policy . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the Paged...
return listByDatabaseNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < BackupShortTermRetentionPolicyInner > > , Page < BackupShortTermRetentionPolicyInner > > ( ) { @ Override public Page < BackupShortTermRetentionPolicyInner > call ( ServiceResponse < Page < BackupShortTermRet...
public class RawAnalyticsRequest { /** * Create a { @ link RawAnalyticsRequest } containing a full Analytics query in Json form ( including additional * query parameters ) . * The simplest form of such a query is a single statement encapsulated in a json query object : * < pre > { " statement " : " SELECT * FROM ...
return new RawAnalyticsRequest ( jsonQuery , bucket , bucket , password , null , GenericAnalyticsRequest . NO_PRIORITY ) ;
public class DescribeHostReservationsRequest { /** * The host reservation IDs . * @ param hostReservationIdSet * The host reservation IDs . */ public void setHostReservationIdSet ( java . util . Collection < String > hostReservationIdSet ) { } }
if ( hostReservationIdSet == null ) { this . hostReservationIdSet = null ; return ; } this . hostReservationIdSet = new com . amazonaws . internal . SdkInternalList < String > ( hostReservationIdSet ) ;
public class EglCore { /** * Makes our EGL context current , using the supplied " draw " and " read " surfaces . */ public void makeCurrent ( EGLSurface drawSurface , EGLSurface readSurface ) { } }
if ( mEGLDisplay == EGL14 . EGL_NO_DISPLAY ) { // called makeCurrent ( ) before create ? Log . d ( TAG , "NOTE: makeCurrent w/o display" ) ; } if ( ! EGL14 . eglMakeCurrent ( mEGLDisplay , drawSurface , readSurface , mEGLContext ) ) { throw new RuntimeException ( "eglMakeCurrent(draw,read) failed" ) ; }
public class DataOutputStream { /** * Writes { @ code count } bytes from the byte array { @ code buffer } starting at * { @ code offset } to the target stream . * @ param buffer * the buffer to write to the target stream . * @ param offset * the index of the first byte in { @ code buffer } to write . * @ pa...
if ( buffer == null ) { throw new NullPointerException ( "buffer == null" ) ; } out . write ( buffer , offset , count ) ; written += count ;
public class ESQuery { /** * Adds the having clauses . * @ param havingExpression * the having expression * @ param aggregationBuilder * the aggregation builder * @ param entityMetadata * the entity metadata * @ return the aggregation builder */ private AggregationBuilder addHavingClause ( Expression havi...
if ( havingExpression instanceof ComparisonExpression ) { Expression expression = ( ( ComparisonExpression ) havingExpression ) . getLeftExpression ( ) ; if ( ! isAggregationExpression ( expression ) ) { logger . error ( "Having clause conditions over non metric aggregated are not supported." ) ; throw new UnsupportedO...
public class KunderaQuery { /** * Parses the ordering @ See Order By Clause . * @ param ordering * the ordering */ private void parseOrdering ( String ordering ) { } }
final String comma = "," ; final String space = " " ; StringTokenizer tokenizer = new StringTokenizer ( ordering , comma ) ; sortOrders = new ArrayList < KunderaQuery . SortOrdering > ( ) ; while ( tokenizer . hasMoreTokens ( ) ) { String order = ( String ) tokenizer . nextElement ( ) ; StringTokenizer token = new Stri...
public class JcrGroovyClassLoaderProvider { /** * { @ inheritDoc } */ public ExtendedGroovyClassLoader getGroovyClassLoader ( SourceFolder [ ] sources ) throws MalformedURLException { } }
if ( sources == null || sources . length == 0 ) return getGroovyClassLoader ( ) ; URL [ ] roots = new URL [ sources . length ] ; for ( int i = 0 ; i < sources . length ; i ++ ) roots [ i ] = sources [ i ] . getPath ( ) ; final GroovyClassLoader parent = getGroovyClassLoader ( ) ; JcrGroovyClassLoader classLoader = Secu...
public class AbsListViewFragment { /** * Provide the cursor for the list view . */ public void setListAdapter ( ListAdapter adapter ) { } }
boolean hadAdapter = mAdapter != null ; mAdapter = adapter ; if ( mList != null ) { mList . setAdapter ( adapter ) ; if ( ! mListShown && ! hadAdapter ) { // The list was hidden , and previously didn ' t have an // adapter . It is now time to show it . setListShown ( true , getView ( ) . getWindowToken ( ) != null ) ; ...
public class ObjectReader { /** * Reads all the objects of the given type from the * database . The object must implement the DatabaseReadable interface . * @ return An array of Objects , or an zero - length array if none was found */ public Object [ ] readObjects ( DatabaseReadable pReadable ) throws SQLException ...
return readObjects ( pReadable . getClass ( ) , pReadable . getMapping ( ) , null ) ;
public class NDCGEvaluation { /** * Compute the DCG given a set of positive IDs and a sorted list of entries , * which may include ties . * @ param < I > Iterator type * @ param predicate Predicate to test for positive objects * @ param iter Iterator over results , with ties . * @ return area under curve */ p...
double sum = 0. ; int i = 0 , positive = 0 , tied = 0 , totalpos = 0 ; while ( iter . valid ( ) ) { // positive or negative match ? do { if ( predicate . test ( iter ) ) { ++ positive ; } ++ tied ; ++ i ; iter . advance ( ) ; } // Loop while tied : while ( iter . valid ( ) && iter . tiedToPrevious ( ) ) ; // We only su...
public class Sha256Hash { /** * Calculates the hash of hash on the given byte ranges . This is equivalent to * concatenating the two ranges and then passing the result to { @ link # hashTwice ( byte [ ] ) } . */ public static byte [ ] hashTwice ( byte [ ] input1 , int offset1 , int length1 , byte [ ] input2 , int off...
MessageDigest digest = newDigest ( ) ; digest . update ( input1 , offset1 , length1 ) ; digest . update ( input2 , offset2 , length2 ) ; return digest . digest ( digest . digest ( ) ) ;
public class Animation { /** * / * package */ void doAnimate ( float ratio ) { } }
Log . v ( Log . SUBSYSTEM . WIDGET , TAG , "doAnimate(): animating %s" , mTarget . getName ( ) ) ; animate ( mTarget , ratio ) ; if ( mRequestLayoutOnTargetChange && mTarget . isChanged ( ) ) { mTarget . requestLayout ( ) ; }
public class CmsSecurityManager { /** * Creates a historical entry of the current project . < p > * @ param context the current request context * @ param publishTag the correlative publish tag * @ param publishDate the date of publishing * @ throws CmsException if operation was not successful */ public void wri...
CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; try { m_driverManager . writeHistoryProject ( dbc , publishTag , publishDate ) ; } catch ( Exception e ) { dbc . report ( null , Messages . get ( ) . container ( Messages . ERR_HISTORY_PROJECT_4 , new Object [ ] { new Integer ( publishTag ) , dbc . curr...
public class ApiOvhConnectivity { /** * Get building references from a given line number * REST : POST / connectivity / eligibility / search / buildingsByLine * @ param lineNumber [ required ] Line number * @ param status [ required ] Status of the line number */ public OvhAsyncTaskArray < OvhBuilding > eligibili...
String qPath = "/connectivity/eligibility/search/buildingsByLine" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "lineNumber" , lineNumber ) ; addBody ( o , "status" , status ) ; String resp = execN ( qPath , "POST" , sb . toString ( ) , o ) ; r...
public class BpmnDeployer { /** * adjust all event subscriptions responsible to start process instances * ( timer start event , message start event ) . The default behavior is to remove the old * subscriptions and add new ones for the new deployed process definitions . */ protected void adjustStartEventSubscription...
removeObsoleteTimers ( newLatestProcessDefinition ) ; addTimerDeclarations ( newLatestProcessDefinition ) ; removeObsoleteEventSubscriptions ( newLatestProcessDefinition , oldLatestProcessDefinition ) ; addEventSubscriptions ( newLatestProcessDefinition ) ;
public class Slice { /** * Gets a byte at the specified absolute { @ code index } in this buffer . * @ throws IndexOutOfBoundsException if the specified { @ code index } is less than { @ code 0 } or * { @ code index + 1 } is greater than { @ code this . capacity } */ public byte getByte ( int index ) { } }
checkPositionIndexes ( index , index + SIZE_OF_BYTE , this . length ) ; index += offset ; return data [ index ] ;
public class Cursor { /** * Updatable */ @ Override public void update ( double extrp ) { } }
if ( pointer != null ) { if ( sync ) { screenX = pointer . getX ( ) ; screenY = pointer . getY ( ) ; } else { screenX += pointer . getMoveX ( ) * sensibilityHorizontal * extrp ; screenY += pointer . getMoveY ( ) * sensibilityVertical * extrp ; } } if ( viewer != null ) { offX = ( int ) viewer . getX ( ) ; offY = ( int ...
public class WsFrameEncodingSupport { /** * Encode WebSocket message as a single frame , with the provided masking value applied . */ public static ByteBuffer rfc6455Encode ( WsMessage message , int maskValue ) { } }
final boolean mask = true ; boolean fin = true ; // TODO continued frames ? ByteBuffer buf = message . getBytes ( ) ; int remaining = buf . remaining ( ) ; int offset = 2 + ( mask ? 4 : 0 ) + calculateLengthSize ( remaining ) ; ByteBuffer b = ByteBuffer . allocate ( offset + remaining ) ; int start = b . position ( ) ;...
public class DescribeTrustsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeTrustsRequest describeTrustsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeTrustsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeTrustsRequest . getDirectoryId ( ) , DIRECTORYID_BINDING ) ; protocolMarshaller . marshall ( describeTrustsRequest . getTrustIds ( ) , TRUSTIDS_BINDING ) ;...
public class EJBSecurityCollaboratorImpl { /** * { @ inheritDoc } */ @ Override public boolean isCallerInRole ( EJBComponentMetaData cmd , EJBRequestData request , SecurityCookieImpl preInvokeData , String roleName , String roleLink ) { } }
if ( request == null ) { // if ( TraceComponent . isAnyTracingEnabled ( ) & & tc . isDebugEnabled ( ) ) { // Tr . info ( tc , " REQUEST _ IS _ NULL " , " Request value passed into isCallerInRole is null . Returning false " ) ; return false ; } Subject callerSubject = subjectManager . getCallerSubject ( ) ; if ( ejbSecC...
public class StandardFieldsDialog { /** * Adds a combo box field , possibly editable , with the given label and model , to the tab with the given index . * Control of selection state ( i . e . set / get selected item ) is done through the combo box model . * @ param < E > the type of the elements of the combo box m...
validateTabbed ( tabIndex ) ; JComboBox < E > field = new JComboBox < > ( comboBoxModel ) ; field . setEditable ( editable ) ; this . addField ( this . tabPanels . get ( tabIndex ) , this . tabOffsets . get ( tabIndex ) , fieldLabel , field , field , 0.0D ) ; this . incTabOffset ( tabIndex ) ;
public class GlobalInterlock { /** * Obtains a global lock of a given type . * @ param em The entity manager to use . Cannot be null . * @ param expiration The time in milliseconds after which an existing lock may be clobbered and re - acquired . * @ param type The application specific lock type represented as a ...
EntityTransaction tx = null ; /* remove the existing lock if it ' s expired */ try { long now = System . currentTimeMillis ( ) ; tx = em . getTransaction ( ) ; tx . begin ( ) ; GlobalInterlock lock = _findAndRefreshLock ( em , type ) ; if ( lock != null && now - lock . lockTime > expiration ) { em . remove ( lock ) ; e...
public class RequestWebScope { /** * First normalize the input according to Unicode rules , so that " O 0xcc 0x88" * ( O with COMBINING DIAERESIS ) becomes " Ö " ( Capital O with umlaut ) . * @ param s * Source string . May be < code > null < / code > . * @ return < code > null < / code > if the source string ...
String sValue = s ; // Removed forbidden chars first if ( sValue == null ) return null ; sValue = getWithoutForbiddenChars ( sValue ) ; // than normalize if ( sValue == null ) return null ; sValue = Normalizer . normalize ( sValue , Normalizer . Form . NFKC ) ; return sValue ;
public class Tuple11 { /** * Skip 6 degrees from this tuple . */ public final Tuple5 < T7 , T8 , T9 , T10 , T11 > skip6 ( ) { } }
return new Tuple5 < > ( v7 , v8 , v9 , v10 , v11 ) ;
public class LockPoint { /** * Request the lock . If it is already locked this method will block until it become unblocked and the lock has been obtained . */ public void lock ( ) { } }
if ( cancel != null ) return ; if ( error != null ) return ; Thread t ; BlockedThreadHandler blockedHandler ; do { synchronized ( this ) { if ( ! locked ) { locked = true ; return ; } t = Thread . currentThread ( ) ; blockedHandler = Threading . getBlockedThreadHandler ( t ) ; if ( blockedHandler != null ) break ; try ...
public class MapWidget { /** * Set a new mouse wheel controller on the map . If the zoom on scroll is currently enabled , it will be disabled * first . * @ param controller * The new mouse wheel controller to be applied on the map . * @ since 1.6.0 */ @ Api public void setMouseWheelController ( MouseWheelHandle...
setZoomOnScrollEnabled ( false ) ; mouseWheelRegistration = graphics . addMouseWheelHandler ( controller ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcDistributionPort ( ) { } }
if ( ifcDistributionPortEClass == null ) { ifcDistributionPortEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 187 ) ; } return ifcDistributionPortEClass ;
public class IO { /** * Associate an { @ link InputStreamHandler } with a specific { @ link MimeType } * @ param type * The mimetype the handler listen to * @ param handler * the handler */ public static void registerInputStreamHandler ( MimeType type , InputStreamHandler handler ) { } }
$ . requireNotNull ( handler ) ; InputStreamHandlerDispatcher dispatcher = inputStreamHandlerLookup . get ( type ) ; if ( null == dispatcher ) { dispatcher = new InputStreamHandlerDispatcher ( handler ) ; inputStreamHandlerLookup . put ( type , dispatcher ) ; } else { dispatcher . add ( handler ) ; }
public class QueryLexer { /** * $ ANTLR start " T _ _ 38" */ public final void mT__38 ( ) throws RecognitionException { } }
try { int _type = T__38 ; int _channel = DEFAULT_TOKEN_CHANNEL ; // src / riemann / Query . g : 30:7 : ( ' time ' ) // src / riemann / Query . g : 30:9 : ' time ' { match ( "time" ) ; } state . type = _type ; state . channel = _channel ; } finally { }
public class ConnectionMaxAgeThread { /** * Invoked periodically . */ public void run ( ) { } }
ConnectionHandle connection = null ; long tmp ; long nextCheckInMs = this . maxAgeInMs ; int partitionSize = this . partition . getAvailableConnections ( ) ; long currentTime = System . currentTimeMillis ( ) ; for ( int i = 0 ; i < partitionSize ; i ++ ) { try { connection = this . partition . getFreeConnections ( ) . ...
public class NumberBindings { /** * Converts the given { @ link javafx . beans . value . ObservableValue } of type { @ link Number } * into an { @ link javafx . beans . binding . LongBinding } . * This is done by the { @ link Number # longValue ( ) } method . * This method can be useful in situations where an ope...
return Bindings . createLongBinding ( ( ) -> nonNullNumber ( source . getValue ( ) ) . longValue ( ) , source ) ;
public class StringUtilities { /** * Normalises the given string , replacing certain special characters with their HTML escape sequences . * < UL > * < LI > < B > < CODE > & lt ; < / CODE > < / B > becomes < B > < CODE > & amp ; lt ; < / CODE > < / B > * < LI > < B > < CODE > & gt ; < / CODE > < / B > becomes < B...
StringBuffer str = new StringBuffer ( ) ; int len = ( s != null ) ? s . length ( ) : 0 ; for ( int i = 0 ; i < len ; i ++ ) { char ch = s . charAt ( i ) ; switch ( ch ) { case '<' : { str . append ( "&lt;" ) ; break ; } case '>' : { str . append ( "&gt;" ) ; break ; } case '&' : { str . append ( "&amp;" ) ; break ; } c...
public class FieldDescriptorConstraints { /** * Checks anonymous fields . * @ param fieldDef The field descriptor * @ param checkLevel The current check level ( this constraint is checked in basic and strict ) * @ exception ConstraintException If the constraint has been violated */ private void checkAnonymous ( F...
if ( CHECKLEVEL_NONE . equals ( checkLevel ) ) { return ; } String access = fieldDef . getProperty ( PropertyHelper . OJB_PROPERTY_ACCESS ) ; if ( ! "anonymous" . equals ( access ) ) { throw new ConstraintException ( "The access property of the field " + fieldDef . getName ( ) + " defined in class " + fieldDef . getOwn...
public class GsonJsonEngine { protected void setupDefaultSettings ( GsonBuilder builder ) { } }
registerStringAdapter ( builder ) ; registerNumberAdapter ( builder ) ; registerJava8TimeAdapter ( builder ) ; registerBooleanAdapter ( builder ) ; registerCollectionAdapter ( builder ) ; registerDBFluteAdapter ( builder ) ; registerUtilDateFormat ( builder ) ; setupFieldPolicy ( builder ) ; setupYourCollectionSettings...
public class DriverFactory { /** * Retrieves the default instance of this class that is configured according to the properties file * ( driver . properties ) . * @ param instanceName * The name of the instance ( corresponding to the prefix in the driver . properties file ) * @ return the named instance */ publi...
if ( instanceName == null ) { instanceName = DEFAULT_INSTANCE_NAME ; } if ( instances . getInstances ( ) . isEmpty ( ) ) { throw new ConfigurationException ( "Driver has not been configured and driver.properties file was not found" ) ; } Driver instance = instances . getInstances ( ) . get ( instanceName ) ; if ( insta...
public class ExpireCacheFilter { /** * Set Cache headers . * @ param response The HttpResponse to set headers on */ private void setHeaders ( HttpServletResponse response ) { } }
setHeader ( response , "Expires" , Long . valueOf ( System . currentTimeMillis ( ) + cacheTimeoutMs ) . toString ( ) ) ; setHeader ( response , "Cache-Control" , "public, must-revalidate, max-age=" + cacheTimeout ) ; // HTTP 1.1. setHeader ( response , "Pragma" , "public" ) ;
public class ProtobufReader { /** * 判断下一个非空白字符是否为 [ * @ param member DeMember * @ param typevals byte [ ] * @ param componentDecoder Decodeable * @ return SIGN _ NOLENGTH 或 SIGN _ NULL */ @ Override public final int readArrayB ( DeMember member , byte [ ] typevals , Decodeable componentDecoder ) { } }
if ( member == null || componentDecoder == null ) return Reader . SIGN_NOLENBUTBYTES ; Type type = componentDecoder . getType ( ) ; if ( ! ( type instanceof Class ) ) return Reader . SIGN_NOLENBUTBYTES ; Class clazz = ( Class ) type ; if ( clazz . isPrimitive ( ) || clazz == Boolean . class || clazz == Byte . class || ...
public class DefaultProperty { /** * / * ( non - Javadoc ) * @ see com . l2fprod . common . propertysheet . Property # setValue ( java . lang . Object ) */ @ Override public void setValue ( Object value ) { } }
super . setValue ( value ) ; if ( parent != null ) { Object parentValue = parent . getValue ( ) ; if ( parentValue != null ) { writeToObject ( parentValue ) ; parent . setValue ( parentValue ) ; } } if ( value != null ) { for ( Property subProperty : subProperties ) { subProperty . readFromObject ( value ) ; } }
public class Codec { /** * Get all supported channel layouts by this { @ code Codec } . If this { @ code Codec } * is not an audio codec , then { @ code null } is returned . * @ return all supported channel layouts by this { @ code Codec } . */ public ChannelLayout [ ] getSupportedChannelLayouts ( ) { } }
LongPointer layoutsPointer = avCodec . channel_layouts ( ) ; if ( getType ( ) != MediaType . AUDIO || layoutsPointer == null ) return null ; List < ChannelLayout > layouts = new ArrayList < ChannelLayout > ( ) ; long layout ; int index = 0 ; while ( ( layout = layoutsPointer . get ( index ++ ) ) != 0 ) layouts . add ( ...
public class ExperimentHelper { /** * This function allows standard paddy management inputs to be generalized * for a field or group of fields . * @ param data The experiment data holder * @ param bundNum Number of Bund height entries * @ param percRate The Percolation rate ( mm / d ) * @ param plowpanDept Th...
int iNum ; ArrayList < HashMap < String , String > > eventData ; String [ ] idates ; Event events ; String pdate ; ArrayList < HashMap < String , String > > results = new ArrayList < HashMap < String , String > > ( ) ; try { iNum = Integer . parseInt ( bundNum ) ; if ( iNum < 1 ) { LOG . error ( "INPUT NUMBER OF BUND H...
public class MultiLineString { /** * Creates a MultiLineString from the given LineStrings . * @ param lineStrings The Iterable of { @ link LineString } . * @ return MultiLineString . */ public static MultiLineString of ( Stream < LineString > lineStrings ) { } }
return of ( lineStrings . collect ( Collectors . toList ( ) ) ) ;
public class CommercePriceListUtil { /** * Returns the last commerce price list in the ordered set where commerceCurrencyId = & # 63 ; . * @ param commerceCurrencyId the commerce currency ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last ...
return getPersistence ( ) . fetchByCommerceCurrencyId_Last ( commerceCurrencyId , orderByComparator ) ;
public class XmlRuleParserPlugin { /** * Read the verification definition . */ private Verification getVerification ( VerificationType verificationType ) throws RuleException { } }
if ( verificationType != null ) { RowCountVerificationType rowCountVerificationType = verificationType . getRowCount ( ) ; AggregationVerificationType aggregationVerificationType = verificationType . getAggregation ( ) ; if ( aggregationVerificationType != null ) { return AggregationVerification . builder ( ) . column ...
public class GlobalOperationClient { /** * Retrieves the specified Operations resource . Gets a list of operations by making a list ( ) * request . * < p > Sample code : * < pre > < code > * try ( GlobalOperationClient globalOperationClient = GlobalOperationClient . create ( ) ) { * ProjectGlobalOperationName...
GetGlobalOperationHttpRequest request = GetGlobalOperationHttpRequest . newBuilder ( ) . setOperation ( operation == null ? null : operation . toString ( ) ) . build ( ) ; return getGlobalOperation ( request ) ;
public class EndPointMgrImpl { /** * For each registered MBean , unpublish , unregister and remove from the map . */ private void destroyEndpointMBeans ( ) { } }
for ( Map . Entry < String , ServiceRegistration < DynamicMBean > > mbean : endpointMBeans . entrySet ( ) ) { String mbeanName = mbean . getKey ( ) ; endpointMBeans . remove ( mbeanName ) ; mbean . getValue ( ) . unregister ( ) ; }
public class InternalXbaseParser { /** * InternalXbase . g : 1292:1 : ruleXBooleanLiteral : ( ( rule _ _ XBooleanLiteral _ _ Group _ _ 0 ) ) ; */ public final void ruleXBooleanLiteral ( ) throws RecognitionException { } }
int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 1296:2 : ( ( ( rule _ _ XBooleanLiteral _ _ Group _ _ 0 ) ) ) // InternalXbase . g : 1297:2 : ( ( rule _ _ XBooleanLiteral _ _ Group _ _ 0 ) ) { // InternalXbase . g : 1297:2 : ( ( rule _ _ XBooleanLiteral _ _ Group _ _ 0 ) ) // InternalXbase . g : 1298:3...
public class TasksImpl { /** * Lists all of the tasks that are associated with the specified job . * For multi - instance tasks , information such as affinityId , executionInfo and nodeInfo refer to the primary task . Use the list subtasks API to retrieve information about subtasks . * @ param jobId The ID of the j...
return listWithServiceResponseAsync ( jobId , taskListOptions ) . map ( new Func1 < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > , Page < CloudTask > > ( ) { @ Override public Page < CloudTask > call ( ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > response ) { return respons...
public class ReactiveRXGenericQueryExecutor { /** * Convenience method to perform multiple calls on a transactional QueryExecutor , committing the transaction and * returning a result . * @ param transaction your code using a transactional QueryExecutor . * < pre > * { @ code * ReactiveRXGenericQueryExecutor ...
return beginTransaction ( ) . toMaybe ( ) . flatMap ( queryExecutor -> transaction . apply ( queryExecutor ) // perform user tasks . flatMap ( res -> queryExecutor . commit ( ) // commit the transaction . andThen ( Maybe . just ( res ) ) ) ) // and return the result ;
public class ClientInterface { /** * Generate a mispartitioned response also log the message . */ private ClientResponseImpl getMispartitionedErrorResponse ( StoredProcedureInvocation task , Procedure catProc , Exception ex ) { } }
Object invocationParameter = null ; try { invocationParameter = task . getParameterAtIndex ( catProc . getPartitionparameter ( ) ) ; } catch ( Exception ex2 ) { } String exMsg = "Unknown" ; if ( ex != null ) { exMsg = ex . getMessage ( ) ; } String errorMessage = "Error sending procedure " + task . getProcName ( ) + " ...
public class GuildController { /** * Creates a copy of the specified { @ link net . dv8tion . jda . core . entities . Channel Channel } * in this { @ link net . dv8tion . jda . core . entities . Guild Guild } . * < br > The provided channel need not be in the same Guild for this to work ! * < p > This copies the ...
Checks . notNull ( channel , "Channel" ) ; return channel . createCopy ( getGuild ( ) ) ;
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcFailureConnectionCondition ( ) { } }
if ( ifcFailureConnectionConditionEClass == null ) { ifcFailureConnectionConditionEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 227 ) ; } return ifcFailureConnectionConditionEClass ;
public class CSSParserVisitorImpl { /** * extract base from parse tree node */ private URL extractBase ( TerminalNode node ) { } }
CSSToken ct = ( CSSToken ) node . getSymbol ( ) ; return ct . getBase ( ) ;
public class Transition { /** * Whether to add the given type to the list of types whose children should * be excluded from this transition . The < code > exclude < / code > parameter * specifies whether the target type should be added to or removed from * the excluded list . * < p > Excluding targets is a gene...
mTargetTypeChildExcludes = excludeObject ( mTargetTypeChildExcludes , type , exclude ) ; return this ;
public class NewSurtTokenizer { /** * Return a list of searches in order of decreasing length . For example * given the surt " ( org , archive , ) / fishing " return : * [ " ( org , archive , ) / fishing " , * " ( org , archive , ) / " , * " ( org , archive , " , * " ( org , " , * @ return */ public List < ...
List < String > searches = new ArrayList < String > ( ) ; String running = "" ; for ( String token : this ) { running += token ; searches . add ( 0 , running ) ; } return searches ;
public class SmbFile { /** * List the contents of this SMB resource . The list returned by this * method will be ; * < ul > * < li > files and directories contained within this resource if the * resource is a normal disk file directory , * < li > all available NetBIOS workgroups or domains if this resource is...
return SmbEnumerationUtil . list ( this , "*" , ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM , null , null ) ;
public class JarManifestParser { /** * Returns a JAR file with its entry class as specified in the manifest . * @ param jarFiles JAR files to parse * @ throws NoSuchElementException if no JAR file contains an entry class attribute * @ throws IllegalArgumentException if multiple JAR files contain an entry class ma...
List < JarFileWithEntryClass > jarsWithEntryClasses = new ArrayList < > ( ) ; for ( File jarFile : jarFiles ) { findEntryClass ( jarFile ) . ifPresent ( entryClass -> jarsWithEntryClasses . add ( new JarFileWithEntryClass ( jarFile , entryClass ) ) ) ; } int size = jarsWithEntryClasses . size ( ) ; if ( size == 0 ) { t...
public class FunctionList { /** * Returns { @ link Function } s that have the given name . */ public FunctionList name ( final String name ) { } }
return filter ( new Filter ( ) { public boolean keep ( Function m ) { return m . getName ( ) . equals ( name ) ; } } ) ;
public class RingBufferSeqnoLockless { /** * Only used for testing ! ! */ public T _get ( long seqno ) { } }
int index = index ( seqno ) ; return index < 0 ? null : buf . get ( index ) ;
public class IntStreamEx { /** * Returns the maximum element of this stream according to the provided key * extractor function . * This is a terminal operation . * @ param keyExtractor a non - interfering , stateless function * @ return an { @ code OptionalInt } describing the first element of this * stream f...
int [ ] result = collect ( ( ) -> new int [ 3 ] , ( acc , i ) -> { int key = keyExtractor . applyAsInt ( i ) ; if ( acc [ 2 ] == 0 || acc [ 1 ] < key ) { acc [ 0 ] = i ; acc [ 1 ] = key ; acc [ 2 ] = 1 ; } } , ( acc1 , acc2 ) -> { if ( acc2 [ 2 ] == 1 && ( acc1 [ 2 ] == 0 || acc1 [ 1 ] < acc2 [ 1 ] ) ) System . arrayco...
public class GrammarImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EList < Grammar > getUsedGrammars ( ) { } }
if ( usedGrammars == null ) { usedGrammars = new EObjectResolvingEList < Grammar > ( Grammar . class , this , XtextPackage . GRAMMAR__USED_GRAMMARS ) ; } return usedGrammars ;
public class HdfsFetcher { /** * Only check quota for those stores : that are listed in the * System store - voldsys $ _ store _ quotas and have non - 1 values . * Others are either : * 1 . already existing non quota - ed store , that will be * converted to quota - ed stores in future . ( or ) * 2 . new store...
if ( diskQuotaSizeInKB != null && diskQuotaSizeInKB != VoldemortConfig . DEFAULT_DEFAULT_STORAGE_SPACE_QUOTA_IN_KB ) { String logMessage = "Store: " + storeName + ", Destination: " + dest . getAbsolutePath ( ) + ", Expected disk size in KB: " + ( expectedDiskSize / ByteUtils . BYTES_PER_KB ) + ", Disk quota size in KB:...
public class StringUtils { /** * < p > Checks if CharSequence contains a search CharSequence , handling { @ code null } . * This method uses { @ link String # indexOf ( String ) } if possible . < / p > * < p > A { @ code null } CharSequence will return { @ code false } . < / p > * < pre > * StringUtils . contai...
if ( seq == null || searchSeq == null ) { return false ; } return CharSequenceUtils . indexOf ( seq , searchSeq , 0 ) >= 0 ;
public class XMLConfigServerFactory { /** * reloads the Config Object * @ param configServer * @ throws SAXException * @ throws ClassNotFoundException * @ throws PageException * @ throws IOException * @ throws TagLibException * @ throws FunctionLibException * @ throws BundleException */ public static vo...
Resource configFile = configServer . getConfigFile ( ) ; if ( configFile == null ) return ; if ( second ( configServer . getLoadTime ( ) ) > second ( configFile . lastModified ( ) ) ) return ; int iDoNew = doNew ( engine , configServer . getConfigDir ( ) , false ) . updateType ; boolean doNew = iDoNew != NEW_NONE ; loa...
public class FormEntry { /** * In contrary to calling { @ link # getValue ( ) } this method does not use the underlying constraint * for generating a value . Instead , only fixed value and current value are checked . The returned * value is not processed using { @ link Configuration # processPropertyValue ( String ...
String value = null ; if ( fixedValue != null ) { value = fixedValue ; } else if ( currentValue != null ) { value = currentValue ; } return value ;
public class FilterReader { /** * Entry point for processing filter definitions . * @ param properties project properties * @ param filters project filters * @ param fixedData filter fixed data * @ param varData filter var data */ public void process ( ProjectProperties properties , FilterContainer filters , Fi...
int filterCount = fixedData . getItemCount ( ) ; boolean [ ] criteriaType = new boolean [ 2 ] ; CriteriaReader criteriaReader = getCriteriaReader ( ) ; for ( int filterLoop = 0 ; filterLoop < filterCount ; filterLoop ++ ) { byte [ ] filterFixedData = fixedData . getByteArrayValue ( filterLoop ) ; if ( filterFixedData =...
public class UIComponent { /** * < p class = " changed _ added _ 2_0 " > Return a * < code > Map & lt ; String , String & gt ; < / code > of the * < code > ResourceBundle < / code > for this component . A component may * have a < code > ResourceBundle < / code > associated with it . This * bundle may contain lo...
if ( null == resourceBundleMap ) { // See if there is a ResourceBundle under the FQCN for this class String className = this . getClass ( ) . getName ( ) ; Locale currentLocale = null ; FacesContext context = null ; UIViewRoot root = null ; ResourceBundle resourceBundle = null ; // Step 1 : look for a ResourceBundle un...
public class DBInputFormat { /** * { @ inheritDoc } */ public void configure ( JobConf job ) { } }
dbConf = new DBConfiguration ( job ) ; try { this . connection = dbConf . getConnection ( ) ; this . connection . setAutoCommit ( false ) ; connection . setTransactionIsolation ( Connection . TRANSACTION_SERIALIZABLE ) ; } catch ( Exception ex ) { throw new RuntimeException ( ex ) ; } tableName = dbConf . getInputTable...
public class AnnotationImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case XtextPackage . ANNOTATION__NAME : setName ( NAME_EDEFAULT ) ; return ; } super . eUnset ( featureID ) ;
public class OperationsInner { /** * Lists available operations . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the OperationsListResultsInner object */ public Observable < OperationsListResultsInner > listAsync ( ) { } }
return listWithServiceResponseAsync ( ) . map ( new Func1 < ServiceResponse < OperationsListResultsInner > , OperationsListResultsInner > ( ) { @ Override public OperationsListResultsInner call ( ServiceResponse < OperationsListResultsInner > response ) { return response . body ( ) ; } } ) ;
public class GetSigningCertificateRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetSigningCertificateRequest getSigningCertificateRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getSigningCertificateRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getSigningCertificateRequest . getUserPoolId ( ) , USERPOOLID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall reque...
public class FragmentedMp4Builder { /** * Gets all samples starting with < code > startSample < / code > ( one based - & gt ; one is the first ) and * ending with < code > endSample < / code > ( exclusive ) . * @ param startSample low endpoint ( inclusive ) of the sample sequence * @ param endSample high endpoint...
// since startSample and endSample are one - based substract 1 before addressing list elements return track . getSamples ( ) . subList ( l2i ( startSample ) - 1 , l2i ( endSample ) - 1 ) ;
public class ThumborUrlBuilder { /** * This filter adds a watermark to the image . * @ param image Watermark image URL . It is very important to understand that the same image * loader that Thumbor uses will be used here . * @ param x Horizontal position that the watermark will be in . Positive numbers indicate p...
if ( image == null ) { throw new IllegalArgumentException ( "Image must not be null." ) ; } return watermark ( image . toString ( ) , x , y , 0 ) ;
public class VehicleManager { /** * Send a message to the VehicleInterface and wait up to 2 seconds to * receive a response . * This is a blocking version of the other request ( . . . ) method . * @ return The response if one is received before the timeout , otherwise * null . */ public VehicleMessage request (...
BlockingMessageListener callback = new BlockingMessageListener ( ) ; request ( message , callback ) ; return callback . waitForResponse ( ) ;
public class PropertiesManagers { /** * Get a simple translator to convert back and forth between Enums and * property names ( keys ) . * @ param < T > * the type of Enum representing the properties * @ param enumType * the Enum class used to represent the properties * @ return the Enum translator implement...
return new Translator < T > ( ) { @ Override public String getPropertyName ( T propertyKey ) { return propertyKey . name ( ) . toLowerCase ( ) . replace ( '_' , '.' ) ; } @ Override public T getPropertyKey ( String propertyName ) { String enumName = propertyName . toUpperCase ( ) . replace ( '.' , '_' ) ; return Enum ....
public class TypeTransformationParser { /** * A Union type expression must be a valid type variable or * a union ( TTLExp , TTLExp , . . . ) */ private boolean validUnionTypeExpression ( Node expr ) { } }
// The expression must have at least three children : The union keyword and // two type expressions if ( ! checkParameterCount ( expr , Keywords . UNION ) ) { return false ; } int paramCount = getCallParamCount ( expr ) ; // Check if each of the members of the union is a valid type expression for ( int i = 0 ; i < para...
public class CmsEditProjectForm { /** * Updates the project resources . < p > * @ throws CmsException in case writing the project fails */ private void updateProjectResources ( ) throws CmsException { } }
CmsObject cms = A_CmsUI . getCmsObject ( ) ; Set < String > resourceRootPaths = getResourcePaths ( ) ; // write the edited project resources CmsProject currentProject = cms . getRequestContext ( ) . getCurrentProject ( ) ; // change the current project cms . getRequestContext ( ) . setCurrentProject ( m_project ) ; // ...
public class WebLocatorAbstractBuilder { /** * < p > < b > Used for finding element process ( to generate xpath address ) < / b > < / p > * < p > Example : < / p > * < pre > * TODO * < / pre > * @ param visibility true or false * @ param < T > the element which calls this method * @ return this element */...
pathBuilder . setVisibility ( visibility ) ; return ( T ) this ;
public class SymbolsExtractor { /** * { @ param expression } could be an OriginalExpression */ private static Set < Symbol > extractUniqueInternal ( RowExpression expression ) { } }
if ( isExpression ( expression ) ) { return extractUnique ( castToExpression ( expression ) ) ; } return extractUnique ( expression ) ;
public class ASTHelpers { /** * Given a TreePath , walks up the tree until it finds a node of the given type . Returns null if no * such node is found . */ @ Nullable public static < T > T findEnclosingNode ( TreePath path , Class < T > klass ) { } }
path = findPathFromEnclosingNodeToTopLevel ( path , klass ) ; return ( path == null ) ? null : klass . cast ( path . getLeaf ( ) ) ;
public class SignSupportServiceImpl { /** * Verifies a received SAD request . * @ param sadRequest * the request to verify * @ param context * the context * @ throws ExternalAutenticationErrorCodeException * for errors */ protected void verifySadRequest ( SignatureActivationDataContext sadRequest , ProfileR...
final AuthnRequest authnRequest = this . getAuthnRequest ( context ) ; if ( authnRequest == null ) { log . error ( "No AuthnRequest available [{}]" , this . getLogString ( context ) ) ; throw new ExternalAutenticationErrorCodeException ( AuthnEventIds . INVALID_AUTHN_CTX , "Missing AuthnRequest" ) ; } final SADRequest ...
public class PreferenceFragment { /** * Notifies all registered listeners , that the default value of a specific preference has been * be restored . * @ param preference * The preference , whose default value has been restored , as an instance of the class * { @ link Preference } . The preference may not be nul...
for ( RestoreDefaultsListener listener : restoreDefaultsListeners ) { listener . onRestoredDefaultValue ( this , preference , oldValue , newValue != null ? newValue : oldValue ) ; }