Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 50589 Details for
Bug 110569
[formatter] Code Formatting: Line Wrapping. Maximum line width problem with method declarations.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Java source affected by this bug
AdminSettingsData.java (text/plain), 3.10 KB, created by
Tim Moore
on 2006-09-20 15:33:47 EDT
(
hide
)
Description:
Java source affected by this bug
Filename:
MIME Type:
Creator:
Tim Moore
Created:
2006-09-20 15:33:47 EDT
Size:
3.10 KB
patch
obsolete
>/* > * LOI Community License Notice > * > * The contents of this file are subject to the LOI Community License > * Version 1.0 (the License); you may not use this file except in compliance > * with the License. A copy of the License is available at > * http://www.learningobjects.com/community. > * > * The Original Code is the Podcast Tool. The Initial Developer of > * the Original Code is Learning Objects, Inc. > * > * Portions created by Initial Developer are Copyright(C) Learning > * Objects, Inc. All Rights Reserved. > * > * Contributor(s): tmoore > * > */ >package com.learningobjects.community.podcast.data; > >import org.apache.commons.lang.builder.EqualsBuilder; >import org.apache.commons.lang.builder.HashCodeBuilder; >import org.apache.commons.lang.builder.ToStringBuilder; > >import com.learningobjects.community.net.InetAddressMatcher; > >/** > * The settings made by administrators of the Podcast application. > * > * @author Tim Moore <tmoore@learningobjects.com> > * @since 1.0 > */ >public class AdminSettingsData { > private boolean feedPublishingEnabled = true; > private boolean inetAddressRestrictionEnabled = false; > private InetAddressMatcher allowedInetAddresses; > > public boolean isFeedPublishingEnabled() { > return feedPublishingEnabled; > } > > public void setFeedPublishingEnabled(boolean feedPublishingEnabled) { > this.feedPublishingEnabled = feedPublishingEnabled; > } > > public boolean isInetAddressRestrictionEnabled() { > return inetAddressRestrictionEnabled; > } > > public void setInetAddressRestrictionEnabled( > boolean inetAddressRestrictionEnabled) { > this.inetAddressRestrictionEnabled = inetAddressRestrictionEnabled; > } > > public InetAddressMatcher getAllowedInetAddresses() { > return allowedInetAddresses; > } > > public void setAllowedInetAddresses(InetAddressMatcher allowedInetAddresses) { > this.allowedInetAddresses = allowedInetAddresses; > } > > public boolean equals(Object obj) { > if (this == obj) > return true; > if (!(obj instanceof AdminSettingsData)) > return false; > AdminSettingsData other = (AdminSettingsData) obj; > return new EqualsBuilder() > .append(feedPublishingEnabled, other.isFeedPublishingEnabled()) > .append(inetAddressRestrictionEnabled, > other.isInetAddressRestrictionEnabled()) > .append(allowedInetAddresses, other.getAllowedInetAddresses()) > .isEquals(); > } > > public int hashCode() { > return new HashCodeBuilder() > .append(feedPublishingEnabled) > .append(inetAddressRestrictionEnabled) > .append(allowedInetAddresses) > .toHashCode(); > } > > public String toString() { > return new ToStringBuilder(this) > .append("feedPublishingEnabled", feedPublishingEnabled) > .append(inetAddressRestrictionEnabled) > .append("allowedInetAddresses", allowedInetAddresses) > .toString(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 110569
: 50589 |
50594