Codota Logo
Cardinality
Code IndexAdd Codota to your IDE (free)

How to use
Cardinality
in
it.tidalwave.bluebill.observation

Best Java code snippets using it.tidalwave.bluebill.observation.Cardinality (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-observation

/***************************************************************************
 *
 * Creates a cardinality as a precise value.
 *
 * @param  count  the value
 *
 **************************************************************************/
@Nonnull
public static Cardinality valueOf (@Nonnegative int count)
 {
  return new Cardinality(count, count, false);
 }
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-observation-simple

 /*******************************************************************************************************************
  *
  * {@inheritDoc}
  *
  ******************************************************************************************************************/
 @Nonnull
 public ChangeBuilder without (final @Nonnull ObservationItem observationItem)
  {
   for (final Iterator<ObservableWithCardinality> i = observablesWithCardinality.iterator(); i.hasNext(); )
    {
     final ObservableWithCardinality observableWithCardinality = i.next();
     // TODO: is it enough to compare the cardinality? What about extra attributes?
     if (observableWithCardinality.observable.equals(observationItem.getObservable()) &&
       observableWithCardinality.cardinality.equals(observationItem.getCardinality()))
      {
       i.remove();
       initializerMap.remove(observableWithCardinality);
       break;
      }
    }
   return this;
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-observation-simple-rdf

 @Override @Nonnull
 public void marshal (final @Nonnull As entity, final @Nonnull Context context)
  {
   super.marshal(entity, context);
   final ObservationItem observationItem = (ObservationItem)entity;
   context.addStatement(observationItem, Vocabulary.RDF_TYPE, Vocabulary.FOAF_DOCUMENT);
   context.addStatement(observationItem, Vocabulary.RDF_TYPE, Vocabulary.OBSERVATION_ITEM);
   context.addStatement(observationItem, Vocabulary.FOAF_TOPIC, observationItem.getObservable());
   final Cardinality cardinality = observationItem.getCardinality();
   if (!cardinality.equals(Cardinality.UNDEFINED))
    {
     context.addStatement(observationItem, Vocabulary.CARDINALITY, cardinality);
    }
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-observation

@Nonnull
public static Cardinality approxValueOf (@Nonnegative int count)
 {
  return new Cardinality(count, count, true);
 }
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-observation

/***************************************************************************
 *
 * Creates a cardinality as a closed range.
 *
 * @param  min  the lower limit of the range
 * @param  max  the upper limit of the range
 *
 **************************************************************************/
@Nonnull
public static Cardinality rangeOf (@Nonnegative int min, @Nonnegative int max)
 {
  return new Cardinality(min, max, false);
 }
it.tidalwave.bluebill.observationCardinality

Javadoc

Represents the cardinality of an observation. It can be a defined number, a close range (min..max) or an open range (>= min,

Most used methods

  • equals
  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
  • onCreateOptionsMenu (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now