Tabnine Logo
RemainderDateTimeField.getWrappedField
Code IndexAdd Tabnine to your IDE (free)

How to use
getWrappedField
method
in
org.joda.time.field.RemainderDateTimeField

Best Java code snippets using org.joda.time.field.RemainderDateTimeField.getWrappedField (Showing top 20 results out of 315)

origin: joda-time/joda-time

public long roundFloor(long instant) {
  return getWrappedField().roundFloor(instant);
}
origin: joda-time/joda-time

public long roundHalfFloor(long instant) {
  return getWrappedField().roundHalfFloor(instant);
}
origin: joda-time/joda-time

public long roundHalfCeiling(long instant) {
  return getWrappedField().roundHalfCeiling(instant);
}
origin: joda-time/joda-time

public long remainder(long instant) {
  return getWrappedField().remainder(instant);
}
origin: joda-time/joda-time

/**
 * Get the remainder from the specified time instant.
 * 
 * @param instant  the time instant in millis to query.
 * @return the remainder extracted from the input.
 */
public int get(long instant) {
  int value = getWrappedField().get(instant);
  if (value >= 0) {
    return value % iDivisor;
  } else {
    return (iDivisor - 1) + ((value + 1) % iDivisor);
  }
}
origin: joda-time/joda-time

public long roundCeiling(long instant) {
  return getWrappedField().roundCeiling(instant);
}
origin: joda-time/joda-time

public long roundHalfEven(long instant) {
  return getWrappedField().roundHalfEven(instant);
}
origin: JodaOrg/joda-time

public long roundCeiling(long instant) {
  return getWrappedField().roundCeiling(instant);
}
origin: JodaOrg/joda-time

/**
 * Get the remainder from the specified time instant.
 * 
 * @param instant  the time instant in millis to query.
 * @return the remainder extracted from the input.
 */
public int get(long instant) {
  int value = getWrappedField().get(instant);
  if (value >= 0) {
    return value % iDivisor;
  } else {
    return (iDivisor - 1) + ((value + 1) % iDivisor);
  }
}
origin: JodaOrg/joda-time

public long roundFloor(long instant) {
  return getWrappedField().roundFloor(instant);
}
origin: JodaOrg/joda-time

public long roundHalfCeiling(long instant) {
  return getWrappedField().roundHalfCeiling(instant);
}
origin: JodaOrg/joda-time

public long roundHalfEven(long instant) {
  return getWrappedField().roundHalfEven(instant);
}
origin: JodaOrg/joda-time

public long roundHalfFloor(long instant) {
  return getWrappedField().roundHalfFloor(instant);
}
origin: JodaOrg/joda-time

public long remainder(long instant) {
  return getWrappedField().remainder(instant);
}
origin: joda-time/joda-time

/**
 * Set the specified amount of remainder units to the specified time instant.
 * 
 * @param instant  the time instant in millis to update.
 * @param value  value of remainder units to set.
 * @return the updated time instant.
 * @throws IllegalArgumentException if value is too large or too small.
 */
public long set(long instant, int value) {
  FieldUtils.verifyValueBounds(this, value, 0, iDivisor - 1);
  int divided = getDivided(getWrappedField().get(instant));
  return getWrappedField().set(instant, divided * iDivisor + value);
}
origin: JodaOrg/joda-time

/**
 * Set the specified amount of remainder units to the specified time instant.
 * 
 * @param instant  the time instant in millis to update.
 * @param value  value of remainder units to set.
 * @return the updated time instant.
 * @throws IllegalArgumentException if value is too large or too small.
 */
public long set(long instant, int value) {
  FieldUtils.verifyValueBounds(this, value, 0, iDivisor - 1);
  int divided = getDivided(getWrappedField().get(instant));
  return getWrappedField().set(instant, divided * iDivisor + value);
}
origin: joda-time/joda-time

/**
 * Construct a DividedDateTimeField that compliments the given
 * RemainderDateTimeField.
 *
 * @param remainderField  complimentary remainder field, like "yearOfCentury()".
 * @param rangeField  the range field, null to derive
 * @param type  the field type this field will actually use
 */
public DividedDateTimeField(RemainderDateTimeField remainderField, DurationField rangeField, DateTimeFieldType type) {
  super(remainderField.getWrappedField(), type);
  int divisor = iDivisor = remainderField.iDivisor;
  iDurationField = remainderField.iRangeField;
  iRangeDurationField = rangeField;
  DateTimeField field = getWrappedField();
  int i = field.getMinimumValue();
  int min = (i >= 0) ? i / divisor : ((i + 1) / divisor - 1);
  int j = field.getMaximumValue();
  int max = (j >= 0) ? j / divisor : ((j + 1) / divisor - 1);
  iMin = min;
  iMax = max;
}
origin: JodaOrg/joda-time

/**
 * Construct a DividedDateTimeField that compliments the given
 * RemainderDateTimeField.
 *
 * @param remainderField  complimentary remainder field, like "yearOfCentury()".
 * @param rangeField  the range field, null to derive
 * @param type  the field type this field will actually use
 */
public DividedDateTimeField(RemainderDateTimeField remainderField, DurationField rangeField, DateTimeFieldType type) {
  super(remainderField.getWrappedField(), type);
  int divisor = iDivisor = remainderField.iDivisor;
  iDurationField = remainderField.iRangeField;
  iRangeDurationField = rangeField;
  DateTimeField field = getWrappedField();
  int i = field.getMinimumValue();
  int min = (i >= 0) ? i / divisor : ((i + 1) / divisor - 1);
  int j = field.getMaximumValue();
  int max = (j >= 0) ? j / divisor : ((j + 1) / divisor - 1);
  iMin = min;
  iMax = max;
}
origin: camunda/camunda-bpm-platform

public long roundFloor(long instant) {
  return getWrappedField().roundFloor(instant);
}
origin: camunda/camunda-bpm-platform

/**
 * Set the specified amount of remainder units to the specified time instant.
 * 
 * @param instant  the time instant in millis to update.
 * @param value  value of remainder units to set.
 * @return the updated time instant.
 * @throws IllegalArgumentException if value is too large or too small.
 */
public long set(long instant, int value) {
  FieldUtils.verifyValueBounds(this, value, 0, iDivisor - 1);
  int divided = getDivided(getWrappedField().get(instant));
  return getWrappedField().set(instant, divided * iDivisor + value);
}
org.joda.time.fieldRemainderDateTimeFieldgetWrappedField

Popular methods of RemainderDateTimeField

  • <init>
    Construct a RemainderDateTimeField that compliments the given DividedDateTimeField. This constructor
  • get
    Get the remainder from the specified time instant.
  • getDivided
  • set
    Set the specified amount of remainder units to the specified time instant.

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JList (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now