Codota Logo
com.asakusafw.runtime.value
Code IndexAdd Codota to your IDE (free)

How to use com.asakusafw.runtime.value

Best Java code snippets using com.asakusafw.runtime.value (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: asakusafw/asakusafw-examples

  @Override
  public void readFields(DataInput in) throws IOException {
    salesDateTime.readFields(in);
    storeCode.readFields(in);
    itemCode.readFields(in);
    amount.readFields(in);
    unitSellingPrice.readFields(in);
    sellingPrice.readFields(in);
    fileName.readFields(in);
  }
}
origin: asakusafw/asakusafw-examples

@Override
@SuppressWarnings("deprecation")
public void reset() {
  this.salesDateTime.setNull();
  this.storeCode.setNull();
  this.itemCode.setNull();
  this.amount.setNull();
  this.unitSellingPrice.setNull();
  this.sellingPrice.setNull();
  this.fileName.setNull();
}
@Override
origin: asakusafw/asakusafw-examples

@Override
@SuppressWarnings("deprecation")
public void copyFrom(SalesDetail other) {
  this.salesDateTime.copyFrom(other.salesDateTime);
  this.storeCode.copyFrom(other.storeCode);
  this.itemCode.copyFrom(other.itemCode);
  this.amount.copyFrom(other.amount);
  this.unitSellingPrice.copyFrom(other.unitSellingPrice);
  this.sellingPrice.copyFrom(other.sellingPrice);
  this.fileName.copyFrom(other.fileName);
}
/**
origin: asakusafw/asakusafw

private DateTime time(int y, int m, int d, int h, int min, int s) {
  int days = DateUtil.getDayFromDate(y, m, d);
  int secs = DateUtil.getSecondFromTime(h, min, s);
  DateTime date = new DateTime();
  date.setElapsedSeconds((long) days * 86400 + secs);
  return date;
}
origin: asakusafw/asakusafw

/**
 * Returns the day of this date and time.
 * @return the day (1-31)
 */
public int getDay() {
  int year = getYear();
  int days = DateUtil.getDayFromSeconds(elapsedSeconds);
  int dayInYear = days - DateUtil.getDayFromYear(year);
  return DateUtil.getDayOfMonth(dayInYear, DateUtil.isLeap(year));
}
origin: asakusafw/asakusafw

/**
 * Returns the month of this date and time.
 * @return the month (1-12)
 */
public int getMonth() {
  int days = DateUtil.getDayFromSeconds(elapsedSeconds);
  int year = getYear();
  int dayInYear = days - DateUtil.getDayFromYear(year);
  return DateUtil.getMonthOfYear(dayInYear, DateUtil.isLeap(year));
}
origin: asakusafw/asakusafw

private Date date(int y, int m, int d) {
  int elapsed = DateUtil.getDayFromDate(y, m, d);
  Date date = new Date();
  date.setElapsedDays(elapsed);
  return date;
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  private void setDate(ValueOption<?> target, java.sql.Date entity) {
    ((DateOption) target).modify(DateUtil.getDayFromDate(entity));
  }
}
origin: asakusafw/asakusafw

/**
 * Returns the value which this object represents.
 * @param alternate the alternative value for {@code null}
 * @return the value which this object represents, or the alternative one if this object represents {@code null}
 */
public long or(long alternate) {
  if (nullValue) {
    return alternate;
  }
  return get().getElapsedSeconds();
}
origin: asakusafw/asakusafw

/**
 * Returns the value which this object represents.
 * @param alternate the alternative value for {@code null}
 * @return the value which this object represents, or the alternative one if this object represents {@code null}
 */
public int or(int alternate) {
  if (nullValue) {
    return alternate;
  }
  return get().getElapsedDays();
}
origin: asakusafw/asakusafw

/**
 * Returns the month of this date.
 * @return the month (1-12)
 */
public int getMonth() {
  int year = getYear();
  int dayInYear = elapsedDays - DateUtil.getDayFromYear(year);
  return DateUtil.getMonthOfYear(dayInYear, DateUtil.isLeap(year));
}
origin: asakusafw/asakusafw

/**
 * Returns the day of this date.
 * @return the day (1-31)
 */
public int getDay() {
  int year = getYear();
  int dayInYear = elapsedDays - DateUtil.getDayFromYear(year);
  return DateUtil.getDayOfMonth(dayInYear, DateUtil.isLeap(year));
}
origin: asakusafw/asakusafw-examples

@Override
@SuppressWarnings("deprecation")
public void reset() {
  this.categoryCode.setNull();
  this.amountTotal.setNull();
  this.sellingPriceTotal.setNull();
}
@Override
origin: asakusafw/asakusafw-examples

@Override
@SuppressWarnings("deprecation")
public void reset() {
  this.itemCode.setNull();
  this.amount.setNull();
  this.sellingPrice.setNull();
  this.categoryCode.setNull();
}
@Override
origin: asakusafw/asakusafw

/**
 * Returns whether both this object and the specified value represents an equivalent value or not.
 * @param other the target value (nullable)
 * @return {@code true} if this object has the specified value, otherwise {@code false}
 */
public boolean has(Date other) {
  if (isNull()) {
    return other == null;
  }
  return entity.equals(other);
}
origin: asakusafw/asakusafw

@Override
public int hashCode() {
  final int prime = 31;
  if (isNull()) {
    return 1;
  }
  int result = 1;
  result = prime * result + entity.hashCode();
  return result;
}
origin: asakusafw/asakusafw

@Override
public int hashCode() {
  final int prime = 31;
  if (isNull()) {
    return 1;
  }
  int result = 1;
  result = prime * result + entity.hashCode();
  return result;
}
origin: asakusafw/asakusafw-examples

@Override
@SuppressWarnings("deprecation")
public void copyFrom(JoinedSalesInfo other) {
  this.itemCode.copyFrom(other.itemCode);
  this.amount.copyFrom(other.amount);
  this.sellingPrice.copyFrom(other.sellingPrice);
  this.categoryCode.copyFrom(other.categoryCode);
}
/**
origin: asakusafw/asakusafw-examples

@Override
public void write(DataOutput out) throws IOException {
  salesDateTime.write(out);
  storeCode.write(out);
  itemCode.write(out);
  amount.write(out);
  unitSellingPrice.write(out);
  sellingPrice.write(out);
  fileName.write(out);
}
@Override
origin: asakusafw/asakusafw

private DateTime time(int y, int m, int d, int h, int min, int s) {
  int days = DateUtil.getDayFromDate(y, m, d);
  int secs = DateUtil.getSecondFromTime(h, min, s);
  DateTime date = new DateTime();
  date.setElapsedSeconds((long) days * 86400 + secs);
  return date;
}
com.asakusafw.runtime.value

Most used classes

  • Date
    A light weight class about date.
  • DateTime
    A light weight class about date and time.
  • IntOption
    Represents an int value which can be null.
  • DateOption
    Represents a date value which can be null.
  • DateTimeOption
    Represents a date and time value which can be null.
  • StringOption,
  • BooleanOption,
  • ByteOption,
  • DateUtil,
  • DecimalOption,
  • DoubleOption,
  • FloatOption,
  • ShortOption,
  • ValueOption,
  • StringOptionUtil,
  • ValueOptionList,
  • ValueOptionMap,
  • BooleanOptionTest,
  • ByteArrayUtil
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