Codota Logo
RemainderDateTimeField.getWrappedField
Code IndexAdd Codota 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)

  • Common ways to obtain RemainderDateTimeField
private void myMethod () {
RemainderDateTimeField r =
  • Codota Iconnew RemainderDateTimeField((DividedDateTimeField)fields.centuryOfEra)
  • Codota Iconnew RemainderDateTimeField((DividedDateTimeField)fields.centuryOfEra, DateTimeFieldType.yearOfCentury())
  • Codota Iconnew RemainderDateTimeField((DividedDateTimeField)fields.centuryOfEra, DateTimeFieldType.weekyearOfCentury())
  • Smart code suggestions by Codota
}
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 remainder(long instant) {
  return getWrappedField().remainder(instant);
}
origin: joda-time/joda-time

public long roundHalfCeiling(long instant) {
  return getWrappedField().roundHalfCeiling(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

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

public long roundFloor(long instant) {
  return getWrappedField().roundFloor(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 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

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JPanel (javax.swing)
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