当前位置: 首页>>代码示例>>Java>>正文


Java Ignore类代码示例

本文整理汇总了Java中org.motechproject.mds.annotations.Ignore的典型用法代码示例。如果您正苦于以下问题:Java Ignore类的具体用法?Java Ignore怎么用?Java Ignore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Ignore类属于org.motechproject.mds.annotations包,在下文中一共展示了Ignore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getCurrentMilestoneStartDate

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
/**
 * Returns the start date and time of the current milestone.
 *
 * @return the start date and time of the current milestone
 */
@Ignore
public DateTime getCurrentMilestoneStartDate() {
    if (schedule.isBasedOnAbsoluteWindows()) {
        DateTime startOfMilestone = getStartOfSchedule();
        List<Milestone> milestones = schedule.getMilestones();
        for (Milestone milestone : milestones) {
            if (milestone.getName().equals(currentMilestoneName)) {
                break;
            }
            startOfMilestone = startOfMilestone.plus(milestone.getMaximumDuration());
        }
        return startOfMilestone;
    }
    if (currentMilestoneName.equals(schedule.getFirstMilestone().getName())) {
        return getStartOfSchedule();
    }
    return (fulfillments.isEmpty()) ? getEnrolledOn() : getLastFulfilledDate();
}
 
开发者ID:motech,项目名称:modules,代码行数:24,代码来源:Enrollment.java

示例2: getEndDate

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
/**
 * Gets the end date for taking this dosage. It will check all the medicines for the latest end date.
 * @return the end date for taking this dosage, or null if there are no medicines with end dates
 */
@Ignore
public LocalDate getEndDate() {
    Set<Medicine> medicinesWithNonNullEndDate = getMedicinesWithNonNullEndDate();
    if (medicinesWithNonNullEndDate.isEmpty()) {
        return null;
    }

    List<Medicine> sortedList = new ArrayList<>(medicinesWithNonNullEndDate);
    Collections.sort(sortedList, new Comparator<Medicine>() {
        @Override
        public int compare(Medicine o1, Medicine o2) {
            return o2.getEndDate().compareTo(o1.getEndDate());
        }
    });
    return sortedList.isEmpty() ? null : sortedList.get(0).getEndDate();
}
 
开发者ID:motech,项目名称:modules,代码行数:21,代码来源:Dosage.java

示例3: getSteps

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public SortedSet<TaskConfigStep> getSteps() {
    SortedSet<TaskConfigStep> steps = new TreeSet<>();

    steps.addAll(getFilters());
    steps.addAll(getDataSources());

    return steps;
}
 
开发者ID:motech,项目名称:motech,代码行数:10,代码来源:TaskConfig.java

示例4: getNextOrderNumber

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
private Integer getNextOrderNumber() {
    Integer order;

    try {
        order = getSteps().last().getOrder() + 1;
    } catch (NoSuchElementException e) {
        order = 0;
    }

    return order;
}
 
开发者ID:motech,项目名称:motech,代码行数:13,代码来源:TaskConfig.java

示例5: setField

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public void setField(String field) {
    if (fields == null) {
        fields = new ArrayList<>();
    } else {
        fields.clear();
    }
    fields.add(field);
}
 
开发者ID:motech,项目名称:motech,代码行数:10,代码来源:TaskActivity.java

示例6: updateFromProperties

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Override
public void updateFromProperties(final Properties props) {
    if (props != null) {
        for (Object key : props.keySet()) {
            savePlatformSetting(key.toString(), props.get(key).toString());
        }
    }
}
 
开发者ID:motech,项目名称:motech,代码行数:10,代码来源:SettingsRecord.java

示例7: load

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Override
public synchronized void load(DigestInputStream dis) throws IOException {
    Properties props = new Properties();
    props.load(dis);
    for (Object key : props.keySet()) {
        savePlatformSetting(key.toString(), props.get(key).toString());
    }
}
 
开发者ID:motech,项目名称:motech,代码行数:10,代码来源:SettingsRecord.java

示例8: updateSettings

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
@Override
public void updateSettings(final String configFileChecksum, String filePath, Properties platformSettings) {
    setConfigFileChecksum(configFileChecksum);
    this.filePath = filePath;
    updateFromProperties(platformSettings);
}
 
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:SettingsRecord.java

示例9: mergeWithDefaults

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
/**
 * Merges given default configuration into existing platform settings. Keys that already exists won't be overwritten.
 *
 * @param defaultConfig  the default configuration to be merged.
 */
@Ignore
public void mergeWithDefaults(Properties defaultConfig) {
    if (defaultConfig != null) {
        for (Object key : defaultConfig.keySet()) {
            if (!platformSettings.containsKey(key.toString())) {
                savePlatformSetting(key.toString(), defaultConfig.get(key).toString());
            }
        }
    }
}
 
开发者ID:motech,项目名称:motech,代码行数:16,代码来源:SettingsRecord.java

示例10: removeDefaults

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
/**
 * Removes settings specified in defaultConfig.
 *
 * @param defaultConfig
 */
@Ignore
public void removeDefaults(Properties defaultConfig) {
    for (Map.Entry<Object, Object> entry : defaultConfig.entrySet()) {
        String key = (String) entry.getKey();
        Object defaultValue = entry.getValue();

        Object currentVal = platformSettings.get(key);

        if (currentVal != null && Objects.equals(currentVal, defaultValue)) {
            platformSettings.remove(key);
        }
    }
}
 
开发者ID:motech,项目名称:motech,代码行数:19,代码来源:SettingsRecord.java

示例11: getSafeLastPasswordChange

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public DateTime getSafeLastPasswordChange() {
    if (lastPasswordChange == null) {
        return modificationDate;
    }
    return lastPasswordChange;
}
 
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:MotechUser.java

示例12: isActive

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public boolean isActive() {
    if (UserStatus.BLOCKED.equals(this.userStatus)) {
        return false;
    }
    return true;
}
 
开发者ID:motech,项目名称:motech,代码行数:8,代码来源:MotechUser.java

示例13: getProviderOrganizationSet

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public Set<ProviderOrganization> getProviderOrganizationSet() {
    if (providerOrganizations != null && providerOrganizations.isEmpty()) {
        return null;
    }
    return providerOrganizations;
}
 
开发者ID:motech,项目名称:modules,代码行数:8,代码来源:Provider.java

示例14: getProviderFacilitySet

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public Set<ProviderFacility> getProviderFacilitySet() {
    if (providerFacilities != null && providerFacilities.isEmpty()) {
        return null;
    }
    return providerFacilities;
}
 
开发者ID:motech,项目名称:modules,代码行数:8,代码来源:Provider.java

示例15: getFacilityOrganizationSet

import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public Set<FacilityOrganization> getFacilityOrganizationSet() {
    if (facilityOrganizations != null && facilityOrganizations.isEmpty()) {
        return null;
    }
    return facilityOrganizations;
}
 
开发者ID:motech,项目名称:modules,代码行数:8,代码来源:Facility.java


注:本文中的org.motechproject.mds.annotations.Ignore类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。