Examples of compareTo()

  • org.apache.directory.shared.util.GeneralizedTime.compareTo()
    Compares this GeneralizedTime object with the specified GeneralizedTime object. @param other the other GeneralizedTime object @return a negative integer, zero, or a positive integer as this objectis less than, equal to, or greater than the specified object. @see java.lang.Comparable#compareTo(java.lang.Object)
  • org.apache.felix.tool.mangen.OsgiPackage.compareTo()
    Just used for sorting in reports
  • org.apache.flink.compiler.costs.Costs.compareTo()
    The order of comparison is: network first, then disk, then CPU. The comparison here happens each time primarily after the heuristic costs, then after the quantifiable costs. @see java.lang.Comparable#compareTo(java.lang.Object)
  • org.apache.flink.runtime.operators.testutils.TestData.Key.compareTo()
  • org.apache.flink.runtime.operators.testutils.TestData.Value.compareTo()
  • org.apache.flink.types.Key.compareTo()
  • org.apache.flink.types.StringValue.compareTo()
  • org.apache.geronimo.kernel.repository.Version.compareTo()
  • org.apache.gora.persistency.ListGenericArray.compareTo()
  • org.apache.hadoop.fs.Path.compareTo()
  • org.apache.hadoop.hbase.HRegionInfo.compareTo()
  • org.apache.hadoop.hbase.HServerAddress.compareTo()
  • org.apache.hadoop.hbase.HServerLoad.compareTo()
  • org.apache.hadoop.hbase.HStoreKey.compareTo()
  • org.apache.hadoop.hbase.TableName.compareTo()
  • org.apache.hadoop.hbase.io.BatchUpdate.compareTo()
  • org.apache.hadoop.hbase.mapreduce.TableSplit.compareTo()
    Compares this split against the given one. @param split The split to compare to. @return The result of the comparison. @see java.lang.Comparable#compareTo(java.lang.Object)
  • org.apache.hadoop.hive.common.type.Decimal128.compareTo()
    Compares this {@code Decimal128} with the specified {@code Decimal128}. Two {@code Decimal128} objects that are equal in value but have a differentscale (like 2.0 and 2.00) are considered equal by this method. This method is provided in preference to individual methods for each of the six boolean comparison operators ( {@literal <}, ==, {@literal>}, {@literal >=}, !=, {@literal <=}). The suggested idiom for performing these comparisons is: {@code (x.compareTo(y)} <op> {@code 0)}, where <op> is one of the six comparison operators. @param val {@code Decimal128} to which this {@code Decimal128} is to becompared. @return a negative integer, zero, or a positive integer as this{@code Decimal128} is numerically less than, equal to, or greaterthan {@code val}.
  • org.apache.hadoop.hive.common.type.HiveDecimal.compareTo()
  • org.apache.hadoop.hive.common.type.HiveVarchar.compareTo()
  • org.apache.hadoop.hive.ql.io.RecordIdentifier.compareTo()
  • org.apache.hadoop.hive.ql.io.orc.OrcRawRecordMerger.ReaderKey.compareTo()
  • org.apache.hadoop.hive.ql.plan.ConditionalResolverCommonJoin.AliasFileSizePair.compareTo()
  • org.apache.hadoop.hive.serde2.columnar.BytesRefArrayWritable.compareTo()
    {@inheritDoc}
  • org.apache.hadoop.io.BytesWritable.compareTo()
    Define the sort order of the BytesWritable. @param right_obj The other bytes writable @return Positive if left is bigger than right, 0 if they are equal, andnegative if left is smaller than right.
  • org.apache.hadoop.io.LongWritable.compareTo()
    Compares two LongWritables.
  • org.apache.hadoop.io.Text.compareTo()
    Compare two Texts bytewise using standard UTF8 ordering.
  • org.apache.hadoop.io.WritableComparable.compareTo()
  • org.apache.hadoop.yarn.api.records.Priority.compareTo()
  • org.apache.jackrabbit.core.id.NodeId.compareTo()
    Compares this identifier to the given other one. @param that other identifier @return -1, 0 or +1 if this identifier is less than, equal to,or greater than the given other identifier
  • org.apache.jackrabbit.uuid.UUID.compareTo()
    Compares two UUID's for equality @see Comparable#compareTo(Object)
  • org.apache.jena.tdbloader4.io.LongQuadWritable.compareTo()
  • org.apache.kahadb.journal.Location.compareTo()
  • org.apache.lucene.facet.taxonomy.CategoryPath.compareTo()
    Compares this CategoryPath with the other CategoryPath for lexicographic order. Returns a negative integer, zero, or a positive integer as this CategoryPath lexicographically precedes, equals to, or lexicographically follows the other CategoryPath.
  • org.apache.lucene.index.FieldInfo.IndexOptions.compareTo()
  • org.apache.lucene.index.Term.compareTo()
    Compares two terms, returning a negative integer if this term belongs before the argument, zero if this term is equal to the argument, and a positive integer if this term belongs after the argument. The ordering of terms is first by field, then by text.
  • org.apache.lucene.util.BytesRef.compareTo()
    Unsigned byte order comparison
  • org.apache.lucene.util.IntsRef.compareTo()
    Signed int order comparison
  • org.apache.maven.artifact.versioning.ArtifactVersion.compareTo()
  • org.apache.maven.artifact.versioning.ComparableVersion.compareTo()
  • org.apache.maven.artifact.versioning.DefaultArtifactVersion.compareTo()
  • org.apache.maven.shared.release.versions.DefaultVersionInfo.compareTo()
    Compares this {@link DefaultVersionInfo} to the supplied {@link DefaultVersionInfo}to determine which version is greater. @param obj the comparison version @return the comparison value @throws IllegalArgumentException if the components differ between the objects or if either of the annotations can not be determined.
  • org.apache.maven.shared.release.versions.VersionInfo.compareTo()
  • org.apache.pig.data.DataByteArray.compareTo()
    Compare two byte arrays. Comparison is done first using byte values then length. So "g" will be greater than "abcdefg", but "hello worlds" is greater than "hello world". If the other object is not a DataByteArray, {@link DataType#compare} will be called. @param other Other object to compare to. @return -1 if less than, 1 if greater than, 0 if equal.
  • org.apache.pig.data.Datum.compareTo()
  • org.apache.pig.data.Tuple.compareTo()
  • org.apache.poi.hssf.record.formula.functions.LookupUtils.LookupValueComparer.compareTo()
  • org.apache.poi.ss.formula.functions.LookupUtils.LookupValueComparer.compareTo()
  • org.apache.qpid.amqp_1_0.type.UnsignedInteger.compareTo()
  • org.apache.sis.util.Version.compareTo()
    Compares this version with an other version object, up to the specified limit. A limit of 1 compares only the {@linkplain #getMajor() major} version number. A limit of 2 comparesthe major and {@linkplain #getMinor() minor} version numbers, etc.The comparisons are performed as {@link Integer} object if possible, or as {@link String}otherwise. @param other The other version object to compare with. @param limit The maximum number of components to compare. @return A negative value if this version is lower than the supplied version, a positivevalue if it is higher, or 0 if they are equal.
  • org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo.compareTo()
  • org.apache.sling.servlets.resolver.helper.WeightedResource.compareTo()
  • org.apache.stanbol.enhancer.nlp.model.Span.compareTo()
  • org.apache.tajo.master.cluster.ServerName.compareTo()
  • org.apache.tajo.storage.TupleRange.compareTo()
  • org.apache.torque.om.NumberKey.compareTo()
    @param o the comparison value @return a numeric comparison of the two values
  • org.apache.turbine.om.ComboKey.compareTo()
  • org.apache.turbine.om.NumberKey.compareTo()
  • org.apache.vxquery.datamodel.accessors.atomic.XSDecimalPointable.compareTo()
  • org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.PubSubAffiliation.compareTo()
  • org.apache.wicket.util.time.Duration.compareTo()
  • org.apache.xmlbeans.XmlAnySimpleType.compareTo()
  • org.archive.modules.CrawlURI.compareTo()
  • org.bitcoinj.core.Coin.compareTo()
  • org.broadleafcommerce.common.money.Money.compareTo()
  • org.bson.types.BSONTimestamp.compareTo()
  • org.bson.types.ObjectId.compareTo()
  • org.candlepin.model.PoolQuantity.compareTo()
  • org.candlepin.util.X509V3ExtensionUtil.NodePair.compareTo()
  • org.chaidb.db.index.Key.compareTo()
    Compare this key with another key. @param otherKey the other key this key compares to @return 0 if two keys are equal, negative integer (<0) if the other keyis greater; positive integer (>0) if this key is greater. @throws ChaiDBException if the two keys are not the same type.
  • org.chromium.debug.core.sourcemap.TextSectionMapping.TextPoint.compareTo()
  • org.chromium.sdk.Version.compareTo()
  • org.codehaus.activemq.journal.RecordLocation.compareTo()
  • org.codehaus.staxmate.in.SMEvent.compareTo()
  • org.databene.mad4db.ChangeSeverity.compareTo()
  • org.dhcp4java.InetCidr.compareTo()
    Compare two InetCidr by its addr as main criterion, mask as second.

    Note: this class has a natural ordering that is inconsistent with equals. @param o @return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

  • org.drools.planner.core.score.Score.compareTo()
  • org.drools.planner.core.score.buildin.hardandsoft.DefaultHardAndSoftScore.compareTo()
  • org.dru.clay.respository.artifact.Version.compareTo()
  • org.eclipse.ecf.core.identity.ID.compareTo()
  • org.eclipse.imp.pdb.facts.type.Type.compareTo()
  • org.eclipse.jst.jsf.core.JSFVersion.compareTo()
  • org.eclipse.sapphire.Version.compareTo()
  • org.eclipse.test.internal.performance.results.model.ResultsElement.compareTo()
  • org.eclipse.wst.common.project.facet.core.IProjectFacetVersion.compareTo()
  • org.emftrace.ui.controls.ContentProviderResultItem.compareTo()
    Compares this object with the given object according to the labels
    Required for sort. @param compareObject the other object @return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
  • org.exist.numbering.NodeId.compareTo()
  • org.exist.versioning.svn.internal.wc.admin.SVNVersionedProperties.compareTo()
  • org.fenixedu.academic.domain.ExecutionYear.compareTo()
  • org.freeplane.core.util.FreeplaneVersion.compareTo()
    Use it like this:
     import org.freeplane.core.util.FreeplaneVersion def required = FreeplaneVersion.getVersion("1.2.20") if (c.freeplaneVersion < required) ui.errorMessage("Freeplane version ${c.freeplaneVersion}" + " not supported - update to at least ${required}") 
  • org.freeplane.features.format.FormattedNumber.compareTo()
  • org.fusesource.mqtt.client.QoS.compareTo()
  • org.geoserver.security.impl.DataAccessRule.compareTo()
    Comparison implemented so that generic rules get first, specific one are compared by name, and if anything else is equal, read comes before write
  • org.geoserver.wfs.WFSInfo.Version.compareTo()
  • org.geotools.geometry.iso.topograph2D.Coordinate.compareTo()
    Compares this {@link Coordinate} with the specified {@link Coordinate}for order. This method ignores the z value when making the comparison. Returns: Note: This method assumes that ordinate values are valid numbers. NaN values are not handled correctly. @param o the Coordinate with which this Coordinate is being compared @return -1, zero, or 1 as this Coordinate is less than,equal to, or greater than the specified Coordinate
  • org.geotools.util.SimpleInternationalString.compareTo()
  • org.geotools.util.Version.compareTo()
    Compares this version with an other version object, up to the specified limit. A limit of 1 compares only the {@linkplain #getMajor major} version number. A limit of 2 comparesthe major and {@linkplain #getMinor minor} version numbers, etc. Thecomparaisons are performed as {@link Integer} object if possible, or as {@link String}otherwise. @param other The other version object to compare with. @param limit The maximum number of components to compare. @return A negative value if this version is lower than the supplied version, a positivevalue if it is higher, or 0 if they are equal.
  • org.glassfish.grizzly.utils.JdkVersion.compareTo()
  • org.gradle.api.logging.LogLevel.compareTo()
  • org.gradle.util.GradleVersion.compareTo()
  • org.gradle.util.VersionNumber.compareTo()
  • org.h2.value.ValueDate.compareTo()
  • org.h2.value.ValueTime.compareTo()
  • org.h2.value.ValueTimestamp.compareTo()
  • org.haystack.tagval.HDateTime.compareTo()
    Comparison based on millis.
  • org.infinispan.container.versioning.EntryVersion.compareTo()
    Compares the given version against the current instance. @param other the other version to compare against @return a InequalVersionComparisonResult instance
  • org.infinispan.container.versioning.NumericVersion.compareTo()
  • org.jacorb.notification.filter.EvaluationResult.compareTo()
  • org.jahia.utils.Version.compareTo()
    Implements the compareTo method from the Comparable interface. This allows this class to be sorted by version number. ComparisonImpl is done the following way : 1. compares the version number until there is no more to compare 2. compares the "state" (beta, release candidate, final) Examples : 4.0, 4.0.1 returns -1 4.0B1, 4.0.1B1 returns -1 4.1.0, 4.0.1 returns 1 4.0.0, 4.0.0 return 0 4.0.1B1, 4.0.1RC2 returns -1 ... @param o a Version object to compare to. If this is not a Version classobject, then a ClassCastException will be raised @return -1 if this version is "smaller" than the one specified. 0 ifit is equal, or 1 if it bigger. @throws ClassCastException if the passed parameter (o) is not a Versionclass object.
  • org.jamesii.core.base.NamedEntity.compareTo()
    Compares two named entities. If they are equal an 0 will be compared. The default implementation should simply use the compareTo methods of the names of entity. The return value of this method shall be returned then. @param o the entity to compare with @return an integer, see {@link java.lang.String#compareTo(String)} methodfor more details.
  • org.jasig.portal.events.aggr.QuarterDetail.compareTo()
    Compare to another {@link QuarterDetail}, must sort by {@link #getQuarterId()}
  • org.jboss.dna.graph.property.Binary.compareTo()
  • org.jboss.dna.graph.property.basic.InMemoryBinary.compareTo()
  • org.jboss.gravia.resource.Version.compareTo()
    Compares this {@code Version} object to another {@code Version}.

    A version is considered to be less than another version if its major component is less than the other version's major component, or the major components are equal and its minor component is less than the other version's minor component, or the major and minor components are equal and its micro component is less than the other version's micro component, or the major, minor and micro components are equal and it's qualifier component is less than the other version's qualifier component (using {@code String.compareTo}).

    A version is considered to be equal to another version if the major, minor and micro components are equal and the qualifier component is equal (using {@code String.compareTo}). @param other The {@code Version} object to be compared. @return A negative integer, zero, or a positive integer if this versionis less than, equal to, or greater than the specified {@code Version} object. @throws ClassCastException If the specified object is not a{@code Version} object.

  • org.jboss.jmx.adaptor.snmp.agent.ComparableSnmpObjectId.compareTo()
    Compare to the passed object. Uses compare() from the underlying snmp-library @see SnmpObjectId.compare() @param o Object to compare with (Usually a ComparableSnmpObjectId) @return -1, if no SnmpObjectId passed in, the result of the underlying compare otherwise.
  • org.jboss.metadata.spi.scope.ScopeLevel.compareTo()
  • org.jboss.metatype.api.values.SimpleValue.compareTo()
  • org.jboss.resteasy.util.WeightedMediaType.compareTo()
  • org.jboss.services.binding.ServiceBindingMetadata.compareTo()
  • org.jboss.weld.ContainerState.compareTo()
  • org.jfree.data.ComparableObjectItem.compareTo()
    Returns an integer indicating the order of this object relative to another object.

    For the order we consider only the x-value: negative == "less-than", zero == "equal", positive == "greater-than". @param o1 the object being compared to. @return An integer indicating the order of this data pair objectrelative to another object.

  • org.jgroups.Address.compareTo()
  • org.jitterbit.integration.data.entity.EntityType.compareTo()
  • org.joda.time.DateMidnight.compareTo()
  • org.joda.time.DateTime.compareTo()
  • org.joda.time.Duration.compareTo()
  • org.joda.time.LocalDate.compareTo()
    Compares this partial with another returning an integer indicating the order.

    The fields are compared in order, from largest to smallest. The first field that is non-equal is used to determine the result.

    The specified object must be a partial instance whose field types match those of this partial.

    NOTE: This implementation violates the Comparable contract. This method will accept any instance of ReadablePartial as input. However, it is possible that some implementations of ReadablePartial exist that do not extend AbstractPartial, and thus will throw a ClassCastException if compared in the opposite direction. The cause of this problem is that ReadablePartial doesn't define the compareTo() method, however we can't change that until v2.0. @param partial an object to check against @return negative if this is less, zero if equal, positive if greater @throws ClassCastException if the partial is the wrong classor if it has field types that don't match @throws NullPointerException if the partial is null

  • org.joda.time.LocalDateTime.compareTo()
    Compares this partial with another returning an integer indicating the order.

    The fields are compared in order, from largest to smallest. The first field that is non-equal is used to determine the result.

    The specified object must be a partial instance whose field types match those of this partial.

    NOTE: This implementation violates the Comparable contract. This method will accept any instance of ReadablePartial as input. However, it is possible that some implementations of ReadablePartial exist that do not extend AbstractPartial, and thus will throw a ClassCastException if compared in the opposite direction. The cause of this problem is that ReadablePartial doesn't define the compareTo() method, however we can't change that until v2.0. @param partial an object to check against @return negative if this is less, zero if equal, positive if greater @throws ClassCastException if the partial is the wrong classor if it has field types that don't match @throws NullPointerException if the partial is null

  • org.jooq.test.data.Table1Record.compareTo()
  • org.kiji.schema.util.ProtocolVersion.compareTo()
    {@inheritDoc}
  • org.libreplan.business.planner.entities.PositionConstraintType.compareTo()
  • org.libreplan.business.workingday.EffortDuration.compareTo()
  • org.libreplan.business.workingday.IntraDayDate.compareTo()
  • org.mantikhor.llapi.DomainURI.compareTo()
    Returns a result compatible with performing this.getURI().compareTo(uri.getURI()). @throws IllegalArgumentException if the parameter is null
  • org.mantikhor.llapi.PropertyDefinition.compareTo()
  • org.modeshape.jcr.value.BinaryKey.compareTo()
  • org.modeshape.jcr.value.BinaryValue.compareTo()
  • org.modeshape.jcr.value.Path.compareTo()
  • org.mule.routing.EventGroup.compareTo()
    Compare this EventGroup to another one. If the receiver and the argument both have groupIds that are {@link Comparable}, they are used for the comparison; otherwise - since the id can be any object - the group creation time stamp is used as fallback. Older groups are considered "smaller". @see java.lang.Comparable#compareTo(java.lang.Object)
  • org.mule.transformer.TransformerWeighting.compareTo()
  • org.mule.util.JdkVersionUtils.JdkVersion.compareTo()
  • org.nasutekds.server.replication.common.ChangeNumber.compareTo()
    Compares this object with the specified object for order. @param cn the ChangeNumber to compare with. @return a negative integer, zero, or a positive integer as this objectis less than, equal to, or greater than the specified object.
  • org.odftoolkit.odfdom.incubator.doc.style.OdfStyle.compareTo()
  • org.opengis.coverage.SampleDimensionType.compareTo()
  • org.openhab.binding.tinkerforge.internal.types.DecimalValue.compareTo()
  • org.openhab.core.library.types.DecimalType.compareTo()
  • org.openide.modules.SpecificationVersion.compareTo()
  • org.openquark.cal.compiler.CompilerMessage.Severity.compareTo()
  • org.optaplanner.core.api.score.Score.compareTo()
  • org.optaplanner.core.config.heuristic.selector.common.SelectionCacheType.compareTo()
  • org.osgi.framework.Bundle.compareTo()
  • org.osgi.framework.ServiceReference.compareTo()
    Compares this {@code ServiceReference} with the specified{@code ServiceReference} for order.

    If this {@code ServiceReference} and the specified{@code ServiceReference} have the same {@link Constants#SERVICE_ID service id} they are equal. This {@code ServiceReference} is less thanthe specified {@code ServiceReference} if it has a lower{@link Constants#SERVICE_RANKING service ranking} and greater if it has ahigher service ranking. Otherwise, if this {@code ServiceReference} andthe specified {@code ServiceReference} have the same{@link Constants#SERVICE_RANKING service ranking}, this {@code ServiceReference} is less than the specified{@code ServiceReference} if it has a higher {@link Constants#SERVICE_ID service id} and greater if it has a lower service id. @param reference The {@code ServiceReference} to be compared. @return Returns a negative integer, zero, or a positive integer if this{@code ServiceReference} is less than, equal to, or greater thanthe specified {@code ServiceReference}. @throws IllegalArgumentException If the specified{@code ServiceReference} was not created by the same frameworkinstance as this {@code ServiceReference}. @since 1.4

  • org.osgi.framework.Version.compareTo()
    Compares this {@code Version} object to another {@code Version}.

    A version is considered to be less than another version if its major component is less than the other version's major component, or the major components are equal and its minor component is less than the other version's minor component, or the major and minor components are equal and its micro component is less than the other version's micro component, or the major, minor and micro components are equal and it's qualifier component is less than the other version's qualifier component (using {@code String.compareTo}).

    A version is considered to be equal to another version if the major, minor and micro components are equal and the qualifier component is equal (using {@code String.compareTo}). @param other The {@code Version} object to be compared. @return A negative integer, zero, or a positive integer if this versionis less than, equal to, or greater than the specified {@code Version} object. @throws ClassCastException If the specified object is not a{@code Version} object.

  • org.owasp.dependencycheck.dependency.Confidence.compareTo()
  • org.owasp.webscarab.model.ConversationID.compareTo()
    compares this ConversationID to another @param o the other ConversationID to compare to @return -1, 0 or 1 if this ConversationID is less than, equal to, or greater than the supplied parameter
  • org.pdf4j.saxon.value.NumericValue.compareTo()
    Compare the value to another numeric value @exception ClassCastException if the other value is not a NumericValue(the parameter is declared as Object to satisfy the Comparable interface) @param other The other numeric value @return -1 if this one is the lower, 0 if they are numerically equal,+1 if this one is the higher, or if either value is NaN. Where NaN values are involved, they should be handled by the caller before invoking this method.
  • org.pdfclown.Version.compareTo()
  • org.pentaho.reporting.engine.classic.core.style.css.selector.SelectorWeight.compareTo()
  • org.projectforge.Version.compareTo()
  • org.rstudio.studio.client.workbench.views.console.shell.editor.InputEditorPosition.compareTo()
  • org.scotlandyard.engine.boardmap.Coordinate.compareTo()
  • org.scotlandyard.impl.engine.boardmap.CoordinateImpl.compareTo()
  • org.sleuthkit.datamodel.TskData.FileKnown.compareTo()
  • org.snmp4j.agent.agentx.master.index.AgentXIndexRegistry.IndexEntry.compareTo()
  • org.snmp4j.smi.OID.compareTo()
  • org.sonar.updatecenter.common.Version.compareTo()
  • org.sonatype.security.authorization.Role.compareTo()
  • org.springframework.batch.core.job.flow.FlowExecution.compareTo()
    Create an ordering on {@link FlowExecution} instances by comparing theirstatuses. @see Comparable#compareTo(Object) @param other @return negative, zero or positive as per the contract
  • org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.Version.compareTo()
  • org.springframework.ide.eclipse.beans.ui.namespaces.DefaultNamespaceDefinition.Version.compareTo()
  • org.teiid.metadata.FunctionMethod.Determinism.compareTo()
  • org.terasology.launcher.util.JavaHeapSize.compareTo()
  • org.threeten.bp.Year.compareTo()
    Compares this year to another year.

    The comparison is based on the value of the year. It is "consistent with equals", as defined by {@link Comparable}. @param other the other year to compare to, not null @return the comparator value, negative if less, positive if greater

  • org.threeten.bp.chrono.ChronoLocalDate.compareTo()
    Compares this date to another date, including the chronology.

    The comparison is based first on the underlying time-line date, then on the chronology. It is "consistent with equals", as defined by {@link Comparable}.

    For example, the following is the comparator order:

    1. {@code 2012-12-03 (ISO)}
    2. {@code 2012-12-04 (ISO)}
    3. {@code 2555-12-04 (ThaiBuddhist)}
    4. {@code 2012-12-05 (ISO)}
    Values #2 and #3 represent the same date on the time-line. When two values represent the same date, the chronology ID is compared to distinguish them. This step is needed to make the ordering "consistent with equals".

    If all the date objects being compared are in the same chronology, then the additional chronology stage is not required and only the local date is used. To compare the dates of two {@code TemporalAccessor} instances, including datesin two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. @param other the other date to compare to, not null @return the comparator value, negative if less, positive if greater

  • org.tmatesoft.hg.repo.HgPhase.compareTo()
  • org.tmatesoft.svn.core.SVNDepth.compareTo()
    Compares this object to another one. @param o object to compare with @return -1 if o is null, or not an SVNDepthinstance, or its {@link #getId() id} is greater than this object's id; 0 if ids this object and o are equal; 1 if id of this object is greater than the one of o.
  • org.tmatesoft.svn.core.SVNProperties.compareTo()
    Compares this object against another one returning a difference between them.

    Properties which are present in this object but are not in properties, are put to the result as property name to null mappings. Properties which are present only in properties but not in this object, are added to the result. Also result will include those properties which are present in both objects but have different values; in this case result will include such properties with values from properties. @param properties another properties object @return properties object holding the properties difference

  • org.tmatesoft.svn.core.internal.wc.admin.SVNVersionedProperties.compareTo()
  • org.uberfire.java.nio.file.Path.compareTo()
  • org.voltdb.catalog.Column.compareTo()
  • org.voltdb.types.TimestampType.compareTo()
    CompareTo - to mimic Java Date
  • org.wicketstuff.mergedresources.versioning.AbstractResourceVersion.compareTo()
    @param o the object to be compared. @return a negative integer, zero, or a positive integer as this object isless than, equal to, or greater than the specified object. @throws IncompatibleVersionsException
  • org.xbill.DNS.Name.compareTo()
    Compares this Name to another Object. @param o The Object to be compared. @return The value 0 if the argument is a name equivalent to this name;a value less than 0 if the argument is less than this name in the canonical ordering, and a value greater than 0 if the argument is greater than this name in the canonical ordering. @throws ClassCastException if the argument is not a Name.
  • org.xmlBlaster.util.Timestamp.compareTo()
    Compares two Timestamps for ordering. @param ts The Timestamp to be compared. @return the value 0 if the argument Timestamp is equal tothis Timestamp; a value less than 0 if this Timestamp is before the Timestamp argument; and a value greater than 0 if this Timestamp is after the Timestamp argument.
  • org.xtreemfs.babudb.lsmdb.LSN.compareTo()
  • pivot.util.Version.compareTo()
  • propel.core.userTypes.Int128.compareTo()
    {@inheritDoc}
  • propel.core.userTypes.UnsignedByte.compareTo()
    {@inheritDoc}
  • propel.core.userTypes.UnsignedInteger.compareTo()
    {@inheritDoc}
  • propel.core.userTypes.UnsignedLong.compareTo()
    {@inheritDoc}
  • propel.core.userTypes.UnsignedShort.compareTo()
    {@inheritDoc}
  • ptolemy.actor.util.Time.compareTo()
    Return -1, 0, or 1 if this time object is less than, equal to, or greater than the given argument. Note that a ClassCastException will be thrown if the argument is not an instance of Time. This object expects the directors associated with this and the specified Time objects to have the same time resolution. If this is not the case, then it compares the double representations of those time values, which is not as accurate. @param time A time object to compare to. @return The integer -1, 0, or 1 if this is less than, equal to, orgreater than the argument.
  • redis.clients.jedis.Tuple.compareTo()
  • ro.redeul.google.go.util.GoNumber.compareTo()
  • ru.aristar.jnuget.Version.compareTo()
  • statechum.DeterministicDirectedSparseGraph.DeterministicVertex.compareTo()
  • statechum.analysis.learning.StatePair.compareTo()
  • statechum.analysis.learning.rpnicore.PairScoreComputation.LabelVertexPair.compareTo()
  • sun.text.normalizer.VersionInfo.compareTo()
    Compares other with this VersionInfo. @param other VersionInfo to be compared @return 0 if the argument is a VersionInfo object that has versioninformation equals to this object. Less than 0 if the argument is a VersionInfo object that has version information greater than this object. Greater than 0 if the argument is a VersionInfo object that has version information less than this object. @stable ICU 2.6
  • thrift.test.Bonk.compareTo()
  • thrift.test.ComparableUnion.compareTo()
  • weka.core.Version.compareTo()
    checks the version of this class against the given version-string. @param o the version-string to compare with @return -1 if this version is less, 0 if equal and +1 if greaterthan the provided version
  • xbird.xquery.dm.value.Item.compareTo()
  • xbird.xquery.dm.value.literal.XNumber.compareTo()
  • xbird.xquery.dm.value.sequence.SingleCollection.compareTo()
  • xbird.xquery.dm.value.xsi.DurationValue.compareTo()

  • Examples of com.xuggle.xuggler.IRational.compareTo()

            // if we had a frame rate suggested, but we
            // didn't find a match among the supported elements,
            // throw an error.
            if (IRational.positive(frameRate) &&
                (highestResolution == null ||
                    highestResolution.compareTo(frameRate) != 0))
              throw new UnsupportedOperationException("container does not"+
                  " support encoding at given frame rate: " + frameRate);
           
            // if we got through the supported list and found NO valid
            // resolution, fail.
    View Full Code Here

    Examples of com.zaranux.client.crypto.util.BigInteger.compareTo()

        private static BigInteger parseMsg(byte[] msg, BigInteger n)
               throws BadPaddingException {
            BigInteger2 m_ = new BigInteger2(1, msg);
           
            BigInteger m = BigInteger.getBigInteger(m_.toString());
           if (m.compareTo(n) >= 0) {
                throw new BadPaddingException("Message is larger than modulus");
           }
            return m;
        }
    View Full Code Here

    Examples of cpw.mods.fml.common.versioning.ArtifactVersion.compareTo()

          ArtifactVersion upperVersion = null;
          if (upperBound.length() > 0) {
            upperVersion = getArtifactVersion(label, upperBound);
          }

          if (upperVersion != null & lowerVersion != null && upperVersion.compareTo(lowerVersion) < 0) {
            throw new InvalidVersionSpecificationException("Range defies version ordering: " + spec);
          }

          restriction = new Restriction(lowerVersion, lowerBoundInclusive, upperVersion, upperBoundInclusive);
        }
    View Full Code Here

    Examples of cpw.mods.fml.common.versioning.ComparableVersion.compareTo()

                            if (!ret.startsWith("Ret: ")) {
                                CodeChickenCorePlugin.logger.error("Failed to check update for " + mod + " returned: " + ret);
                                return null;
                            }
                            ComparableVersion newversion = new ComparableVersion(ret.substring(5));
                            if (newversion.compareTo(new ComparableVersion(version)) > 0)
                                addUpdateMessage("Version " + newversion + " of " + mod + " is available");
                            return null;
                        }
                    });
        }
    View Full Code Here

    Examples of cpw.mods.fml.common.versioning.DefaultArtifactVersion.compareTo()

                        ArtifactVersion current = new DefaultArtifactVersion(getVersion());

                        if (rec != null)
                        {
                            ArtifactVersion recommended = new DefaultArtifactVersion(rec);
                            int diff = recommended.compareTo(current);

                            if (diff == 0)
                                status = UP_TO_DATE;
                            else if (diff < 0)
                            {
    View Full Code Here

    Examples of de.innovationgate.wga.common.beans.csconfig.v1.Version.compareTo()

                        plugin.addInstallationFault(plugin.new InitialisationFault(e.getMessage()));
                    }
                   
                    // WGA Version
                    Version wgaVersion = WGAVersion.toCsConfigVersion();
                    int comp = wgaVersion.compareTo(plugin.getCsConfig().getPluginConfig().getMinimumWGAVersion());
                    if (comp < 0) {
                        plugin.addInstallationFault(plugin.new InstallationFault(WGAPlugin.InstallationFault.ERROR_WRONG_WGA_VERSION));
                    }
                   
                    // Java Version
    View Full Code Here

    Examples of de.lmu.ifi.dbs.elki.database.ids.DBID.compareTo()

            if(neighbors1ID.equals(neighbors2ID)) {
              intersection++;
              neighbors1ID = iter1.hasNext() ? iter1.next() : null;
              neighbors2ID = iter2.hasNext() ? iter2.next() : null;
            }
            else if(neighbors2ID.compareTo(neighbors1ID) > 0) {
              neighbors1ID = iter1.hasNext() ? iter1.next() : null;
            }
            else // neighbors1ID > neighbors2ID
            {
              neighbors2ID = iter2.hasNext() ? iter2.next() : null;
    View Full Code Here

    Examples of de.lmu.ifi.dbs.elki.distance.distancevalue.DoubleDistance.compareTo()

              DBID pid = ((LeafEntry) p).getDBID();
              // FIXME: objects are NOT accessible by DBID in a plain rtree context!
              DoubleDistance dist_pq = distanceFunction.distance(relation.get(pid), relation.get(q));
              tree.distanceCalcs++;
              if(dist_pq.compareTo(knn_q_maxDist) <= 0) {
                knns_q.add(dist_pq, pid);
              }
            }
          }
        }
    View Full Code Here

    Examples of de.lmu.ifi.dbs.elki.utilities.pairs.IntIntPair.compareTo()

      protected IntIntPair advance() {
        IntIntPair min = null;
        PairSortedGeneratorInterface best = null;
        for (PairSortedGeneratorInterface gen : this.generators) {
          IntIntPair n = gen.current();
          if (n != null && (min == null || n.compareTo(min) < 0)) {
            min = n;
            best = gen;
          }
        }
        // advance best generator
    View Full Code Here

    Examples of de.mh4j.solver.genetic.Genome.compareTo()

            int currentGeneration = genePool.getCurrentGeneration();
            long oldFitnessSum = genePool.getFitnessSum();

            Genome newGenome = mock(Genome.class);
            int newGenomeFitness = 42;
            when(newGenome.compareTo(newGenome)).thenReturn(Genome.EQUAL);
            when(newGenome.getFitness()).thenReturn(newGenomeFitness);

            genePool.addGenome(newGenome);

            assert genePool.contains(newGenome) : "Genepool should contain the added genome";
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.